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

int i = 0 not code because modern compilers don't need to know about int at first. The compiler wants to now that you creat a variable the type is not importend at that moment. Thats why most new languages like go or scala have the type after the inizalisation.


> int i = 0 not code because modern compilers don't need to know about int at first.

Where "modern" means "any non-utterly-stupid compiler built in the last 40 years or so".




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: