Strings

Cf0x10 allows double or single quotes to be used interchangeably. This avoids the considerable confusion found in languages where double and single quotes have subtly different meanings. These are exactly the same:

'Hello, world'
"Hello, world"

If you run the program above, you’ll find there is a newline after the first “Hello, world,” but none after the second. If you want an explicit newline, use backtick for the usual escapes that most programming languages have:

'`n is a newline'
'`` is a literal backtick'
'`' is a literal single quote'

Hint

If you do not want the newline between lines of output, use the continuation operator, three dots. This prints “Hello, world” all on one line:

'Hello, '...
'world'

String concatenation

Comefrom0x10 has very simple string concatenation, making it, like PHP, an ideal language for Web templating [1].

Unlike other languages that mostly throw away whitespace, Comefrom0x10 uses space as an operator, for string concatenation. This is like C-style string literal concatenation, but more powerful, as it’s a true operator and, thus, not limited to string literals only:

who = "world"
"Hello, " who

The space operator is required. This does not compile:

who = "world"
"Hello, "who
[1]Assuming you don’t mind being pwned