crystal v0.19.2 Release Notes
Release Date: 2016-09-16 // over 7 years ago-
- Generic type variables no longer need to be single-letter names (for example
class Gen(Foo)
is now possible) - โ Added syntax to denote free variables:
def foo(x : T) forall T
. The old rule of single-letter name still applies but will be removed in the future. - โ Removed the restriction that top-level types and constants can't have single-letter names
- โ Added
@[Extern]
attribute to mark regular Crystal structs as being able to be used in C bindings - ๐ Faster
Char#to_s
when it's ASCII: this improves the performance of JSON and CSV parsing - ๐
crystal spec
: allow passing--release
and other options crystal spec
: allow running all specs in a given directory- ๐
crystal playground
: support custom workbook resources (thanks @bcardiff) crystal playground
: standard output now understands ANSI colors (thanks @bcardiff)- โ Added many more macro methods to traverse AST nodes (thanks @BlaXpirit)
- 0๏ธโฃ Error messages no longer include a type trace by default, pass
--error-trace
to show the full trace (the trace is often useless and makes it harder to understand error messages) - ๐ Several bug fixes
- Generic type variables no longer need to be single-letter names (for example