-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
anonymous structs, arrays, and advanced casting
- structs literals can be made without a type. e.g. .{ foo = 5, bar = "hello", } - the same is true for arrays. e.g. .[1, 2, 3] - casting is more advanced for both structs and arrays. here are some casts that were impossible before and are possible now: [3]i32 as [3]f64 struct { a: u8, b: char } as struct { b: u128, a: f32 } the struct casting is based on the field names, so in the above example first.a -> second.a and first.b -> second.b, regardless of the new order or new types - casting itself has also been optimized and hopefully there are less memcpys - the fuzzer has been updated to support changes to the codebase that happened a while ago - u128 literals now actually work - few slight bug fixes
- Loading branch information
1 parent
6801322
commit a6ceda8
Showing
22 changed files
with
2,128 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.