Evan Hubinger
Evan Hubinger
Should add a `map_using` keyword argument to `starmap` and use it to add `starmap.using_processes` and `starmap.using_threads`. We should also probably set ``` map.using_processes = process_map map.using_threads = thread_map ``` and...
If we introduced parsing individually for each `lineitem`, we could very easily cache and reuse prefix parses by storing the full compiler state after the lineitem. Would require adjusting `loc`s.
Current Coconut syntax: https://coconut.readthedocs.io/en/latest/DOCS.html#keyword-argument-name-elision Discussion of possible new Python syntax: https://discuss.python.org/t/syntactic-sugar-to-encourage-use-of-named-arguments/36217/131 Coconut syntax should be deprecated in favor of whatever Python adopts.
Statement lambdas should automatically get partially applied with the surrounding scope, even that introduced by a list comprehension or normal lambda. Easy way to do this is try to inject...
- [x] Use pygments to highlight code in error messages. - [x] Cut long code snippets in the middle. - [ ] Use fancy formatting for kernel errors.
Should look up the module for import, compile it, then run `python -m` to execute it. Should be incompatible with `-r` or `-i`. Should also work for `coconut-run` and should...
Should compile `def f(**kwargs: **D): ...` to `def f(**kwargs: typing.Unpack[D]): ...`.
Should support `pyright` like `mypy` is currently supported
We already mostly support [PEP 695](https://peps.python.org/pep-0695/), except for: * [tuple constraints](https://peps.python.org/pep-0695/#constrained-type-specification) * generating literal syntax on 3.12 * [lazy evaluation of `type` statements](https://docs.python.org/3.12/reference/executionmodel.html#lazy-evaluation)
Something like a `--silence-warnings` parameter that accepts a regex to match against the warning to determine whether to silence it or not.