3 ms·
The article spends a lot of time justifying a syntax that really just papers over Zig's lack of parameter pack support. The same pattern in Rust would just use
by andout_ 2y ago
The article spends a lot of time justifying a syntax that really just papers over Zig's lack of parameter pack support. The same pattern in Rust would just use variadic templates/generics.
- samatman 2y agoThis comment might be valuable if you added some elaboration, and an example of what it looks like.
- fallingsquirrel 2y ago> The same pattern in Rust would just use variadic templates/generics. Are you sure Rust has variadic generics? Last I checked, the extent of progress was a draft RFC. https://github.com/rust-lang/rfcs/issues/376 https://github.com/rust-lang/rfcs/issues/376
- steveklabnik 2y agoTo be super clear: it does not.
- deleted 2y ago[deleted]
- PoignardAzur 2y ago> The same pattern in Rust would just use variadic templates/generics. Man, must be nice to be a time traveler from the 2030s. How does Covid25 turn out?