Skip to content

1.1.0

Latest
Compare
Choose a tag to compare
@Sreyas-Sreelal Sreyas-Sreelal released this 13 Jan 06:58
· 1 commit to master since this release
737e745

What's Changed

  • Malluscript now support compound datatype called Lists.
  • Pseudo pass by reference support for compound datatypes
  • New operator: subscript operator [] - used to index values in Lists.
  • Support constant List expressions
  • New "arithmetic" operator behaviors when used with Lists.
  • New error type IndexOutOfBounds

Lists

Lists in Malluscript are similar to compound types in other mainstream programming languages. A list can have different type of primary data in it. An example usage of List would be:

x = [1,4,5,6,"malluscript"];
x = x + "more data";
i = 0;
i um 6 um onnallenkil avarthikuga {
    ezhuthuga x[i] + " ";
    i = i+1;
}

Using + operator along side a list data, will append the other operand into that list. List data can be accessed using subscript operators []. Also unlike other datatypes when passed as an argument to a function, it will be passed as reference instead of passed as value.

New Contributors

Full Changelog: 1.0.0...1.1.0

Also now I'm on Patreon 😊 If you appreciate the work I've put into Malluscript and find it valuable, you're welcome to show support on Patreon. Your encouragement means a lot and helps in sustaining the development of Malluscript. Thank you genuinely for considering it!