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

That seems to be mostly just a matter of taste, but is definitely off putting when coming from other languages. Interestingly other recent languages like rust, zig, and go follow a similar convention to type script. Go has a brief explanation of why they went with this approach [0] so I’d be curious if other langs have documented their decisions.

[0] https://go.dev/doc/faq#declarations_backwards



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

Search: