News for hackers. Stuff that matters.
Re:First look: adding type annotations to JavaScript by S1ngleM4lt on Thursday March 10, 2022 @11:47AM (#30629005)
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

There are no comments on this comment yet.