Re:When Zig is safer and faster than Rust
by somethingor on Tuesday March 07, 2023 @03:31PM
(#35060786)
@TypeOf returns a type: https://ziglang.org/documentation/master/#Names
Re:When Zig is safer and faster than Rust
by edflsafoiewq on Tuesday March 07, 2023 @03:28PM
(#35060737)
> Why does Zig change capitalization of @import and @TypeOf?
TypeOf returns a type. Corresponding to how type names are uppercase.
* Why does C# require a break; under switch?
* What about the "Most Vexing Parse"?
* Why does Zig change capitalization of @import and @TypeOf?
Rust is an extremely "guessable" language. It's highly likely that experimenting with syntax will succeed in Rust, which is a syntax feature that I have seen nowhere else.