5 ms·
I want to like Zig, but I just hate the {var | const } identifier : type syntax. I know it's an extremely superficial observation, but it just doesn't fe
by dasb 6y ago
I want to like Zig, but I just hate the
{var | const } identifier : type
syntax.
I know it's an extremely superficial observation, but it just doesn't feel good to me.
- degurechaff 6y agomany new language put type in last part of declaration. rust, go, typescript, and other
- samatman 6y agoEverything old is new again! The style dates back to Pascal. I think it's better, personally, and that might be because Pascal was my first programming language, but I don't care, I'm just happy it's back in fashion. As a side note, I was quite sure that it dated back to Algol 60, but looked it up for this comment, and nope! Type came before variable.
- AndyKelley 6y agoenjoy ;) https://www.youtube.com/watch?v=880uR25pP5U https://www.youtube.com/watch?v=880uR25pP5U
- higerordermap 6y agoI am a programmer and I make very scientific decisions. I don't like this language because syntax is not like C.