News for hackers. Stuff that matters.
Re:The Next Step for Generics by Mirioron on Wednesday June 17, 2020 @03:31PM (#23555684)
Are the majority actually writing code like this though? In the case of dynamic languages, this property seems more like an additional consequence of how the language behaves. It's not additional syntax.
Re:The Next Step for Generics by wokwokwok on Wednesday June 17, 2020 @09:26PM (#23558822)
> Are the majority actually writing code like this though?

Yes.

For example, some use cases: https://www.typescriptlang.org/v2/docs/handbook/unions-and-i...

This sort of code is very common.

I really don't know what more to say about this; if you don't want to use them, don't. ...but if your excuse for not using them is that other people don't, it's wrong.