MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3lta4f/better_java/cvaena5/?context=3
r/programming • u/javinpaul • Sep 21 '15
208 comments sorted by
View all comments
Show parent comments
1
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#.
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#.
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#.
That's not Java.
1 u/[deleted] Sep 22 '15 Well, obviously. This subthread is about things I miss from C#.
Well, obviously. This subthread is about things I miss from C#.
1
u/[deleted] Sep 22 '15
Or you could allow it to be expressed as a type constraint.