News for hackers. Stuff that matters.
Re:Zig: programming language designed for robustness optimal... by Yoric on Wednesday May 30, 2018 @06:03AM (#17186419)
In my experience from Rust & co, yep, this improves correctness a lot. Elegance, not so much.
Re:Zig: programming language designed for robustness optimal... by whyever on Wednesday May 30, 2018 @06:42AM (#17186550)
I think some of the combinators can be elegant. E.g. `Option::map`.
Re:Zig: programming language designed for robustness optimal... by zoul on Wednesday May 30, 2018 @12:21PM (#17189009)
Swift’s syntax sugar for Optionals makes working with nullable types much more elegant, too.
Re:Zig: programming language designed for robustness optimal... by Yoric on Thursday May 31, 2018 @05:46AM (#17195125)
My personal experience of Swift vs. Rust is that Swift's syntax sugar is more readable for most examples, but Rust lack of syntax sugar scales better to more exotic examples.

YMMV