Data Types

Mutant programming language supports following data types: The language is loosly typed and it does not require defining specific data types while creating variables.

Primitive Types
  • string: Strings in Mutant are UTF-8 encoded strings. A string in mutant is a read-only list of bytes. While mutant does not support bytes natively as of this release, it is closely tied with how Go treats its bytes and strings.

  • integer: All integers in [Mutant]https://github.com/gaurav-gogia/mutant] are treated as 64 bit signed integers

  • bool: All bools in Mutant are simple objects that are treated as either true or false

Complex Types
  • list: Lists in Mutant are heterogenous arrays that can store variables of multiple, supported primitive data types

  • hashMap: HashMap in Mutant are associative data types. They are key value pairs.