Path to this page:
Subject: CVS commit: pkgsrc/lang/zig
From: Adam Ciarcinski
Date: 2020-04-18 10:08:07
Message id: 20200418080807.A344CFB27@cvs.NetBSD.org
Log Message:
zig: updated to 0.6.0
Language Changes in 0.6.0:
Improved names of error sets when using merge error sets operator (||).
pub syntax for container fields is removed.
Type coercion from *[0]T to E![]const T is now allowed. This is an unambiguous, \
safe cast.
asm now accepts comptime-known values, rather than requiring string literal syntax.
Removed compile error for peer result ?comptime_int and null.
Ability to pass comptime types and non comptime types to same parameter.
@typeOf is renamed to @TypeOf. zig fmt automatically performs the conversion, \
and the next release of Zig after this one will remove the automatic conversion.
Ability to switch on pointer types.
Multiline strings in test and library names are disallowed.
Zig language no longer requires the expression a else unreachable with comptime \
a to produce a comptime result.
Timon Kruiper implemented casting between [*c]T and ?[*:0]T on fn parameter.
Timon Kruiper improved @typeInfo to lazily resolve declarations. This way all \
the declarations in a namespace won't be resolved until the user actually uses \
the declarations slice in the builtin TypeInfo union.
@ptrCast supports casting a slice to a pointer.
LemonBoy implemented peer type resolution between ?[]T and *[N]T.
There is now peer type resolution between mixed-const []T and *[N]T.
Files: