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

Yeah, it does have that stigma. It certainly did for me; "Why the hell are there colons before these variables..?"

It's funny how much the first languages you learn (for lots of people, Java/C/JS) have such an impact on what "feels weird," when every programming language is basically magic anyway.




Well, Ruby and Julia and scheme, I think?) all have those same colons too, so it's not totally crazy. It's the post- colon that's strange (but Ruby has those too)


In a JSON world post colons are normal :-) and we've been living there for ages. Ruby added x: y as a short form for :x => y




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: