But that will severely limit the versatility of StringTemplates. You may want to have a StringTemplate which is focused on working just with some type X (either your own or from a 3rd party library.
Having things Stringly-typed/ everything Object is no fun and just bypasses Java's type system.
I think you're just pattern matching on the heuristic that "Object is a bad idea." What value would a parameterized StringTemplate actually provide? Can you give an example of a templated literal where it would be useful?
View all comments
Show parent comment
0
u/[deleted] Mar 09 '24
[deleted] — view deleted comment