in reply to Re: What's new in ECMAScript6, or: Oh no! Don't steal syntax from Perl!
in thread What's new in ECMAScript6, or: Oh no! Don't steal syntax from Perl!
The backquote in lisp is used in macro expansions if you want only some parts of the code to be expanded.(preceded by comma not dollar)
That's similar to.variable.interpolation but different because the result is code (a lisp list to be precise which is anything) and not a string like in Perl.
And I've never seen this construct outside of macros. (does it even work?)
So yes this part is Perlish, but not particular, its also Bashish or even Shish (= omni shellish)
I'd say back tick was taken to avoid backward incompatibilities with.double quotes as delimiter.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What's new in ECMAScript6, or: Oh no! Don't steal syntax from Perl!
by wrog (Friar) on Jun 01, 2015 at 15:20 UTC |