coconut
coconut copied to clipboard
Simple, elegant, Pythonic functional programming.
Should compile ``` x |> (.+1) ``` to ``` x + 1 ```
Should be able to support: ``` listen_for_requests() |> async_map$(handle_request) ```
Requesting Hygenic Macros like in macropy: https://github.com/lihaoyi/macropy Its useful for example to refer to the columns of a dataframe of object in a formula or expression that is later expanded...
Should replace the compiler flags with compiler directives at the top of the file. Syntax can be something like: ```python coconut: no_tco ```
``` % http https://coconut-lang.org http: error: SSLError: HTTPSConnectionPool(host='coconut-lang.org', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError("hostname 'coconut-lang.org' doesn't match either of 'www.github.com', '*.github.com', 'github.com', '*.github.io', 'github.io', '*.githubusercontent.com', 'githubusercontent.com'")))...
The simple statement `from io import StringIO` results in an error when running mypy checks. ``` $ coconut error.coco -s Compiling error.coco ... Compiled to error.py . $ coconut error.coco...
If the operands to a `::` call are just variables, we shouldn't be wrapping them in a lazy list.
Should compile ```python addpattern def f(...) = ... ``` into ```python def _unique_name_(...) = ... f = addpattern(f)(_unique_name_) ``` when there are no additional decorators.