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

>Perhaps the author has very narrow experience in programming languages.

I got that impression as well.

Xi's impressed about types being optional because they can be inferred.

That's ... hardly a novelty ...



>Only the first and third part are compulsory in Zig, which is kind of puzzling, coming from Java or C.

Funny they mention Java that has got type inference few years now. Even C got a weaker version of C++'s auto in C23.


One of the many things I don't like about C++ is that auto isn't type inference but instead C++ has type "deduction" which is a little different, in some cases a type will be "deduced" even though what you wrote was ambiguous and you may have wanted a different type.




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

Search: