KoryNunn / presh

An immutable interpreted expression language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multiline strings / template literals?

markwylde opened this issue · comments

Are you all for implementing multiline strings (or even better, template literals) into presh?

Is that hard to do? Could I do it?

Okay, just realised you can do:

'hey

hello'

And that outputs heyhello

So it looks like presh does actually support multiline strings.

Is this intended or a side effect?

In that case, you can kinda do interpolation via:

'hey

hello' + variable + 'there'

Okay another weird problem.

In the example, if you paste in the below, it will error. But if you type the whole thing in manually it will work. Are the newline characters al being accepted?

"hello

there"