3 ms·
So far Ruby provided me the best user experience regarding string interpolation, and it owes a large part of it to Perl. Squiggly heredoc is something I am una
by psychoslave 6y ago
So far Ruby provided me the best user experience regarding string interpolation, and it owes a large part of it to Perl.
Squiggly heredoc is something I am unaware of in any other general programming language.
- dnautics 6y agoElixir heredocs do this by default. Plus you can prepend it with sigils to activate string macros. Here I use it to inject content into another programming language embedded within Elixir (lower case ~z allows interpolation, upper case ~Z does not): https://www.youtube.com/watch?v=fIxNEILcNGM&t=25m50s https://www.youtube.com/watch?v=fIxNEILcNGM&t=25m50s