News for hackers. Stuff that matters.
Re:Java 21 Released by 5e92cb50239222b on Tuesday September 19, 2023 @01:01PM (#37572873)
This is a solved problem in .NET, and C# only has one kind of string templating:

  FormattableString foo = $"select * from {table} where {column} = 42";
https://learn.microsoft.com/en-us/ef/core/querying/sql-queri...
Re:Java 21 Released by kaba0 on Tuesday September 19, 2023 @01:34PM (#37573349)
Not sure if C# can do that, but java’s implementation can return an arbitrary object based on the templates/parameters.