Skip to content

v1.2.1 [Colonel]

Compare
Choose a tag to compare
@evhub evhub released this 15 Feb 02:07
· 2826 commits to master since this release

See Coconut's documentation for more information on all of the features listed below.

New features:

  • --mypy flag for automatic type-checking (including real-time in the REPL)
  • Support for Python type annotations on all versions
  • New enhanced partial application (e.g. func$(?, y)) (thanks @Sitwon!)
  • Tail recursion elimination added in addition to tail call optimization
  • Support for %magic commands on Coconut's Jupyter kernel
  • Syntax highlighting for Coconut's Jupyter kernel
  • Support for keyword and star arguments in pattern-matching function definition
  • Support for pattern-matching in statement lambdas (e.g. def (x is int) -> x)
  • Adds coconut-run command with shebang support (e.g. #!/usr/bin/env coconut-run)
  • Support for COCONUT_STYLE environment variable for setting a default --style
  • New CONTRIBUTING.md
  • New Czech translation (thanks @Tovim!)

Fixes:

  • Method calls are now valid implicit partials (e.g. .method(args))
  • Compilation speed significantly increased
  • Fixed running IPython %coconut command multiple times
  • Fixed --watch compiling files twice (thanks @Nexus6!)
  • Version restrictions on dependencies loosened
  • Enhanced reversed and enumerate built-ins (thanks @Nexus6!)
  • Fixed calling methods on integer literals (thanks @DomoSokrat!)