coconut
coconut copied to clipboard
Simple, elegant, Pythonic functional programming.
What about allowing in-place operations for tuples like so: ``` (a, b) += (c, d) # equivalent to a+= c; b +=d A = (1, 2, 3) B = (2,...
Should be significantly faster.
I´d like to compile other Coconut files dynamically from my coco script, but I need to know the target version of the current script, otherwise I get results that are...
Coconut's [documentation for the `data` keyword](http://coconut.readthedocs.io/en/master/DOCS.html#data) states that it lets you create immutable ADTs. I see a nice concise language for creating immutable product types, but for it to truly...
Any plans to allow [runtime type enforcing](https://github.com/RussBaz/enforce)? I attempted to use the enforce decorator `@runtime_validation` but for the `data` types (coconut named tuples, while enforce expects [`typing.NamedTuple`](https://github.com/RussBaz/enforce#namedtuple)) I couldn't get...
I'm having cases where I repetitively write the same code parts (as a replacement for some built-in stuff), and want to simplify. However, I don't want to replace everything by...
In my test code I mock user input to simulate interactive console interaction. Since above mentioned version, the tests jump into interactive mode instead of being mocked (vs. `.dev20`, which...
When I run `coconut-run -t3 -l code.coco` it compiles, when run the first time. When I run an alias `cr code.coco` it compiles again, although already built. The alias is...
Proposed implementation: - `const`: right-hand side is evaluated at compile time - `final`: protected from being re-assigned by the compiler