Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



many new language put type in last part of declaration. rust, go, typescript, and other


Everything 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.



I am a programmer and I make very scientific decisions. I don't like this language because syntax is not like C.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: