3 ms·
> his will probably never happen cause C looms too large in Zig's world, but I wish "*" and especially the super non-intuitive "&" go the way of the dodo and so
by Quekid5 8y ago
> his will probably never happen cause C looms too large in Zig's world, but I wish "*" and especially the super non-intuitive "&" go the way of the dodo and some short keywords replace them. Perhaps "ptr" and "deref"?
Beware Stroustrup's Rule[0] :).
[0] https://thefeedbackloop.xyz/stroustrups-rule-and-layering-over-time/ https://thefeedbackloop.xyz/stroustrups-rule-and-layering-ov...
- oblio 8y agoWell, I was expressing more of a personal preference but I can't miss the opportunity to take a jab at Stroustroup, even if the rule seems good and valid, something went astray when he designed C++, so I guess Rule[0] was ok, the problem was with rules [1] to [99] :p On a more serious note, I think that this word form is concise enough and might emphasize code smells in a more modern language, where stuff like * *a should be super rare, IMHO.