Rustland is for Retards
1 25 Sep 2018 10:30 by u/captainstrange
This link really summarizes the level of muddled thinking going on in the rust 'community.'
let is immutable--except when it isn't--like when it is shadowed--except in cases xyz.
Typical of academics with a hard on for haskell, O-shaped camels and communism.
5 comments
0 u/neogag 26 Sep 2018 09:10
Check out ziglang. It's shaping up fantastically.
https://ziglang.org/
0 u/Srazash 26 Sep 2018 09:22
That looks fucking awesome, gonna check it out later 👌
0 u/neogag 26 Sep 2018 09:34
I've been playing around with it for months. I'm convinced this will be a worthy C successor if its development keeps going as is.
0 u/captainstrange [OP] 26 Sep 2018 10:27
I really like wrapped operations to prevent overflows.
The ability to differentiate an unordered struct from an ordered one, and easy array concatenation/multiplication make my dick hard.
I like the addition of non-fallthrough switches with ranges and combined cases. Matching is better but arbitrarily complex branches is still one up on C.
I could go on but I'd just be telling you what you already know. Thank you for this.
This fucking guy went and made something thats actually worth exploring. A better C.
0 u/neogag 26 Sep 2018 10:44
The "killer app" is a feature called comptime, which allows static/compile time computation. The same mechanism is used to implement generics, i.e. you write a function that returns a struct or function that you define generically, with the type T given as a comptime param (comptime is a keyword). The compiler generates different versions of the function for whatever types T you pass to the function.
Also it's going to have coroutines multiplexed over green threads as part of the stdlib.
This is going to be a spectacular language.