Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

When the function name & types are harder to grok than the body I think it’s an issue. Looking at you, TypeScript.


view as:

For me it is an issue as well, but it doesn't seem to be an issue for the others. I strongly prefer Haskell/math notation for denoting the types of functions, but all the new languages choose other syntax.

I don't think the syntax of TS is the problem. It's that people are trying to define types for massively dynamic JS that is inherently hard to express as a type.

Legal | privacy