logoalt Hacker News

wosinedlast Tuesday at 10:58 PM1 replyview on HN

Why is the Type T notation needed. Just make T the generic type by default and allow using it instead of int, float etc. Is that not possible? This looks like a lot of syntactic noise. Not as bad a c++, but not far from it.


Replies

wosinedlast Tuesday at 10:59 PM

If you need more than just T, then you could do T1, T2, ..., Tn as well.