Comment

Comment by MrPatan

Do you also use one letter variables and parameters? If not, what is different about generics?

Even in your example, I'd rather read this:

map<IN,OUT>(fn:(el:IN)=>OUT):OUT[]

Plus, it really is a habit. If you stop doing it for these kind of examples that really are very generic, maybe people wouldn't also use only one letter for cases where there is more of a difference between them.

parent MrPatan 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton