-
Notifications
You must be signed in to change notification settings - Fork 6
String Interpolation
Shane Brinkman-Davis Delamore edited this page Apr 14, 2017
·
4 revisions
"Hello, #{username}"
"" Hello, #{username}
""
Hello, #{username}Given "#{a}", the string produced depends on a:
- Array:
a.join ''(NOT '.', JavaScript's default) - Null/Undefined: '' (NOT 'null' or 'undefined', JavaScript's default)
- Otherwise, it is passed to JavaScript's standard interpolation routine which calls
a.toString()
- Home
- Get Started
- Benefits
- Highlights
- Productivity by Design
- CaffeineScript Design
- What is CaffeineScript Good For?
- Get the most out of JavaScript
- Language Comparison
- CHANGELOG
- Blocks Instead of Brackets
- Binary Line-Starts
- Everything Returns a Value
- Streamlined Modules
- Scopes and Variables
- Optional Commas
- Semantics
- Ambiguities