String interpolation: Difference between revisions

Content deleted Content added
Ruby / Crystal: the latter two are format strings, not interpolation
Scala: add clarifying context
Line 350:
{{Main article|Scala (programming language)}}
 
[[Scala (programming language)|Scala]] 2.10+ hasprovides implementeda thegeneral followingfacility to allow arbitrary processing of a string interpolators:literal, and supports string interpolation using the included <code>s,</code> and <code>f</code> andstring rawinterpolators. It is also possible to write custom ones or override the standard ones.
 
The <code>f</code> interpolator is a compiler macro that rewrites a format string with embedded expressions as an invocation of String.format. It verifies that the format string is well-formed and well-typed.
 
==== The standard interpolators ====