- This topic has 0 replies, 1 voice, and was last updated 11 years, 2 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- The forum ‘Internals & Enhancements’ is closed to new topics and replies.
Integrated Application Platform
Integrated Application Platform › Forums › Internals & Enhancements › Two New Features
I recently added a couple of small features to the language.
Concatenation in string constants
#(“a long string ………..” $
“………… some more”)
This is primarily cosmetic – code with long strings can be formatted nicer.
The concatenation is done at compile time.
Default value for switch statement
switch { … } is equivalent to switch (true) { … }
This is useful when you put expressions in the cases:
switch { case x < 5 : ... You can, of course, do the equivalent with a series of if-else but sometimes the switch format is clearer. These changes are in version control. I’ll post a new release at some point.