Strings 2000

Erel

Administrator
Staff member
Licensed User
You are almost correct. I see three mistakes (one is not really related).

Are you sure this works?
It will in the next version. This is a new string literal that makes it easier to create strings. The three main advantages: multiline, (formatted) string interpolation and no need to escape quotes.
 
Last edited:

MikeH

Well-Known Member
Licensed User
Example 1
Example 2
Example 3:
The value of FirstTime is True.
10 / 3 = 3.33
Sin (45) = 2.72
Today is 21/01/2015
 

sorex

Expert
Licensed User
@Erel : just wondering...

what is the point of these $ wrapped around the string in the first line?
why don't you need double quotes there like we need for normal strings?
 

LucaMs

Expert
Licensed User
Read post #3, Luca !!!


So, we will have a new operator called: "SmartDollar".


If I wake up, can I (we) suggest other "features" of that operator?
 
Last edited:

sorex

Expert
Licensed User
any chance that this would be the default for all string operations? :)

PHP also has this variables in strings method ( echo "the time is $now in {$myarray[0]}"; )

easier (to read) than all the concating
 
Top