Release 0.1.11
github-actions
released this
22 Apr 03:13
·
223 commits
to master
since this release
Additions:
- Ability specify where piped arguments are placed using
_
.x |> foo(y, _) == foo(y, x)
- Alternative syntax for
case #default ...
. You can now just writecase _ ...
. - Alternative syntax for binding documentation using
///
. - Experimental compiler extensions feature, currently used to create procedural macros.
core.misc.any_deep_copy
- Ability to explicitly specify tag value for tagged unions.
Variant as value: type
, i.e.Foo as 3: i32
Removals:
- Deprecated the use of
#default
in case statements. Use_
instead. - Removed
iter.take_one
. Useiter.next
instead.
Changes:
There are several breaking changes in this release related to core library APIs.
Iterator.next
now returns? T
instead of(T, bool)
io.Stream
usesResult(T, Error)
for return types instead of(Error, T)
switch
over arange
is no longer inclusive by default, since..=
exists now.- Enabled optional semicolons by default.
//+optional-semicolons
is no longer necessary.
There are also several non-breaking changes.
- The internal memory layout is different. See pull request #133 for details.