3 ms·
This reminds me of quasi-literals, proposed (accepted?) for the next version of JS: http://wiki.ecmascript.org/doku.php?id=harmony:quasis http://wiki.ecmascrip
by chubot 12y ago
This reminds me of quasi-literals, proposed (accepted?) for the next version of JS:
http://wiki.ecmascript.org/doku.php?id=harmony:quasis http://wiki.ecmascript.org/doku.php?id=harmony:quasis
http://www.nczonline.net/blog/2012/08/01/a-critical-review-of-ecmascript-6-quasi-literals/ http://www.nczonline.net/blog/2012/08/01/a-critical-review-o...
The point is to eliminate content injection bugs (XSS). I suppose it's not really the same because JS isn't statically typed, but the motivation seems similar, and it looks similar.
Originally from the E programming language: http://www.erights.org/elang/grammar/quasi-overview.html http://www.erights.org/elang/grammar/quasi-overview.html