String interpolation: Difference between revisions

Content deleted Content added
m Ruby: make consistent with python example
No edit summary
Line 1:
{{Merge|Printf format string|Variable interpolation}}
'''String interpolation''' is a form of [[Quasi-quotation]], common in many [[programming language]]s which make heavy use of [[String (computer science)|string]] representations of data, such as [[Python_(programming_language)|Python]], [[Ruby (programming language)|Ruby]], [[PHP]], [[Perl]], [[Scala (programming language)|Scala]], [[Nemerle]] etc. It means to insert a string or replace a variable with its value. It makes string formatting and specifying contents more intuitive.<ref>http://perlmeme.org/howtos/using_perl/interpolation.html</ref>