melon
melon copied to clipboard
The Melon programming language
We should explain how to run the stand-alone interpreter from the command line
It's probably best to rename `types.isClosure` to `types.isFunction`. Even if they are called `Closures` by the VM they are `Function`s for the end-user.
Both `random.getRandomInt` and `random.getRandomNumber` force both `min` and `max` to be specified or not specified. They should simply fallback to the default value if one is not specified.
`function.getName` returns the string `@anonymous@` if the function has no value. It should simply return `null`.
It has a precedence of `2` while it should have `6` like the equality operator.
Consider the following code: ```js let myFunc = |a, b, ...rest| => { io.print(#rest); }; myFunc(1, 2); ``` This code will print `1`, the `rest` array will be only contain...
Comparing array references triggers an assert in `value.c`.
The slicing operator's end index is inclusive but it's more intuitive for it to be exclusive.