3 ms·
Odd they reference c# since c# does not have this feature in its traditional format strings - they don't allow you to access arbitrary members. C# recently add
by Pxtl 10y ago
Odd they reference c# since c# does not have this feature in its traditional format strings - they don't allow you to access arbitrary members.
C# recently added string interpolation, which does allow arbitrary code, but string interpolation itself is compiled C# code and can't be stored like a format string.
Personally I use mustache when i need format-string-like-behavior from semi-trusted users.