penne
penne copied to clipboard
Penne is a pasta-oriented programming language that favors the goto-statement for flow control.
I really like the dereferencing logic. It's good for refactors. For example in C, when you have a reference `x` and supply it to a function, you would do `f(x)`....
I think, removing the `:` after `return` would be less confusing.
Blocks will take parameters, for example by specifying them using `with` before them. For example now a factorial would look like this: ``` fn factorial(x: i32) { var result: i32...
I'd suggest using pairs of `/*` and `*/` like in C, since you already use `//` for single line comments like C.
Simple usage to simplify return: ``` if some_condition { // supplies 1 and 2, will return 2 goto return 1, 2; } else { // supplies 2 and 3, will...
At the moment, you'd need to scan down to the end of a block to see if it `loop`s, whereas with an `if`, you can tell right from the start...