Coconut v3.1.1
See Coconut's documentation for more information on all of the features listed below.
Language features:
- #833: New
case def
syntax for more easily defining pattern-matching functions with many patterns. - #811: New
f(name=)
syntax as a shorthand forf(name=name)
, replacing the now deprecatedf(...=name)
syntax. - #836: New
CoconutWarning
built-in used for Coconut runtime warnings.
Compiler features:
- #837: Coconut will now warn about implicit string concatenation and disable it completely with
--strict
. - #718: Coconut will now warn about use of
addpattern def
without a priormatch def
. This was a previously-supported feature to make pattern-matching functions with many patterns easier to write, but the new recommended way to do that is now viacase def
. - #785: Initial pyright support via the
--pyright
flag.
Bugfixes: