4 ms·
I've been following the JEPs from a distance and my feeling was that there wasn't really a "wow!" or great solution and a lot of mild disagreements. Maybe it's
by PedroBatista 2y ago
I've been following the JEPs from a distance and my feeling was that there wasn't really a "wow!" or great solution and a lot of mild disagreements.
Maybe it's a bikeshedding situation, but since we are talking about language design and one with a huge instaled base I think this was the best decision since the upside is really not that great compared to the downside.
- deleted 2y ago[deleted]
- neonsunset 2y agoThis is a well solved problem in languages like JS[0] and C#[1] allowing both plain and customized interpolation. Perhaps they wanted a different implementation and could not just take after prior art due to politics or culture? [0]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#tagged_templates https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... [1]: https://learn.microsoft.com/en-us/ef/core/querying/sql-queries#passing-parameters https://learn.microsoft.com/en-us/ef/core/querying/sql-queri... (example showcases it better than API spec, C# generally lets you take it further to perform zero-allocation interpolation with custom interpolated handlers if you e.g. want to pass interpolated output into a buffer/stream/etc.)