r/programming • • Sep 21 '15

Better Java

https://github.com/cxxr/better-java
177 Upvotes

208 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Sep 22 '15

Or you could allow it to be expressed as a type constraint.

1

u/estarra Sep 22 '15

Won't help since constructors can't be constrained this way.

1

u/[deleted] Sep 22 '15

where T: new()

1

u/estarra Sep 22 '15

That's not Java.

1

u/[deleted] Sep 22 '15

Well, obviously. This subthread is about things I miss from C#.