coconut
coconut copied to clipboard
Simple, elegant, Pythonic functional programming.
e.g.: ```python def func(): do_stuff() return x do_more_stuff() ```
Possible syntaxes: ```python do: ... while cond ``` ```python do while cond: ... ``` ```python do: ... while: cond ``` Regardless, they should be compiled to: ```python while True: ......
I was going throught the case studies for `coconut` tutorial and tried using `addpattern` ```python def factorial(0) = 1 addpattern def factorial(n is int if n > 0) = """Compute...
Should make new exception subclasses just aliases for their superclass on older Python versions. See: search for “new in” in
The language looks really nice, but without some tooling around it I'll find it hard to use at work and for personal projects. It would be great if there were...
We should do something similar to what pytest does with assert statements and provide a default error message for simple assert patterns with more information than the default message. For...
Currently, code highlighter in Sublime Text has been available, but code formatter (black) and linter (flake8) are not compatible with coconut, as it introduces new syntax
Really nice project. Writing in coconut files, you lose all the IDE integrations for Python. For example, I use VSCode and all the intellicode and hints of course doesn't work...
This broke my tests, when I attempted to use the `print
Recently added was the [`mypyc`](https://github.com/mypyc/mypyc) package. Probably not compatible with all Python versions and distributions, but it is said to run 3 times faster than `mypy`. Could be put conditionally...