- #
Interpolation
- Interpolation using #{} for strings, integers, floating point numbers
- and even expressions.
examples/intro/interpolation.cr
name = "Foo Bar" pi = 3.14 radius = 3 yesno = true puts "Hello #{name}" puts "PI is #{pi}" puts "The area of a circle with a radius of #{radius} is #{pi * radius**2}!" puts "Boolean #{yesno}"
Hello Foo Bar PI is 3.14 The area of a circle with a radius of 3 is 28.26! Boolean true