coconut icon indicating copy to clipboard operation
coconut copied to clipboard

Simple, elegant, Pythonic functional programming.

Results 95 coconut issues
Sort by recently updated
recently updated
newest added

The idea is to support [PEP 479](https://www.python.org/dev/peps/pep-0479/) on all versions (not just those which support `from __future__ import generator_stop`, which is the current behavior).

compatibility

Coconut's `data` allows for arbitrary length constructor using the `*args` syntax, like a function, but don't allow for type hints in those. This will work: ```python def foo(*args: float): ```...

modification

When Coconut has to do something that will obviously break type-checking (outside of the header) it should automatically add `type: ignore` comment.

modification
partially resolved

A statement of the form ```python (a := b) ``` Currently requires a Python 3.8 target, but could be compiled to ```python a = b (a) ``` in order to...

compatibility

I just replaced all instances of lambda functions like `() -> ...` by `-> ...` since it seems to be a possible shortcut, but broke my code out of the...

documentation
feature

Especially given the presence of `concurrent_map`.

modification

Should automatically add Coconut line numbers to Python line numbers in `--mypy` output.

good first issue
tooling

Provides better error messages than not compiling the file at all, and allows for some degree of caching.

modification
good first issue

The code ``` func(head + [tail] match in list) ``` should be equivalent to ``` match [head] + tail in list: func(True) else: func(False) ``` with the exception that the...

feature

I think we should have a proper linter/checker for coconut, something like `flake8` for pure Python. What do you think?

good first issue
tooling