This file lists some feature ideas for the language and the compiler.
- Add custom error handling. (Specifically, add an override of visitErrorNode in FunctionControlPathAnalyzer and something similar in StaticChecker).
- Improve logging format (something like gcc would be good).
- Make installation and usage easier.
- Probabilistic execution of statements, and then blocks (
idk
operator with probability). - Compilation of all possible pathways. (
idk
operator with no probability).
-
An asap operator for functions that will call the function as soon as possible. This function can be called again later on too of course. For example:
let asap doThis() { // do something here }
The above is equivalent to doing this:
let doThis() { // do something here } () -> doThis.
-
Add null check operator.
-
Add floating point numbers.
-
Add hexadecimal numbers.
-
Add a for loop (and other kinds of loops).
-
Add break and continue statements.
-
Add the conditional ternary operator.
-
Add something like a switch statement.
-
Exception handling?
-
Lambdas would be so good.
-
Import statements. Freaking required.
-
Deferred blocks would be quite cool. Shouldn't be too tough to implement too.
-
Escaped characters in strings.
-
Blocks that execute only with a random probability. Like:
/* 40% chance of executing */ with chance (40%) -> <identifier> { // if it happens, <identifier> is an int that has the random number generated } else { // if it does not happen }
-
What if a function returns a value probabilistically? :-)