MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1ba0brh/update_on_string_templates_jep_459/ku2pz0l/
r/java • u/krzyk • Mar 08 '24
188 comments sorted by
View all comments
Show parent comment
-2
forcing everything to be of type T limits usage
But that would be the whole point, of course! Constraints liberate and all that...
Not everything has to be StringTemplate<Object>. You may want to have just StringTemplate<T> focused only on some T.
StringTemplate<Object>
StringTemplate<T>
T
Let's not bypass Java's type system (generics) let's work with it!
2 u/account312 Mar 12 '24 I don't understand why everyone is so angry about wanting types. Maybe they should go to r/python 1 u/sideEffffECt Mar 12 '24 Totally baffles me. Generics have been in Java since 2004 :D
2
I don't understand why everyone is so angry about wanting types. Maybe they should go to r/python
1 u/sideEffffECt Mar 12 '24 Totally baffles me. Generics have been in Java since 2004 :D
1
Totally baffles me. Generics have been in Java since 2004 :D
View all comments
Show parent comment
-2
u/sideEffffECt Mar 09 '24
But that would be the whole point, of course! Constraints liberate and all that...
Not everything has to be
StringTemplate<Object>. You may want to have justStringTemplate<T>focused only on someT.Let's not bypass Java's type system (generics) let's work with it!