Darryl Abbate
Darryl Abbate
Ex: `x < y < z` See Python docs: https://docs.python.org/3/reference/expressions.html#comparisons
E.g. ``` a,b = 1,2 // a = 1, b = 2 ``` ``` fn f() { return 1,2,3 } x,y,z = f() // x = 1, y = 2,...
I.e. inverse of `if` ```riff unless { // Control transfers if expr is false } ``` Note that Perl, for example, supports `unless`...`elsif`...`else`
``` fn f(...) { } ``` I'm labeling this as experimental since it's not immediately clear to me how to implement this, but it's a handy language feature that I'd...
Currently, tables are represented as `table: %p` in strings. While any implementation would be linear at best, something better should be available, either across the interpreter or a dedicated builtin.
Currently, `eval()` only executes the first argument; effectively requiring the user to build the code to be executed as a single string (via concatenation or interpolation). `eval()` should accept multiple...
With the removal of implicit printing in 2905761a0fdc81545cc267be4b35b7d10b75bf24, implicit value return from functions should now be possible. This was attempted earlier in 019700a9915f5c023a7ca2e12dff117e40d0b0bc and later reverted in 13994c7ac921f174e2402ba85f36d3a62df547d8 due to...
When implicit printing was supported, it made sense to not return values from all builtin functions. Now it makes sense to return *something* from all builtin functions, even those which...
- `lines(file)` - `file` is an already open file object; `file` is not automatically closed once EOF is reached - `lines("filename")` - File at path `"filename"` is opened, and closed...
This should be pretty straightforward since anonymous function are already supported. Current ideas (all would be valid): ``` \x -> x+2 \(x,y) -> x+y \x,y -> x+y ```