flofriday / Moose

🐐 A new fun programming language
MIT License
6 stars 1 forks source link

Support of escape characters #34

Closed Jozott00 closed 1 year ago

Jozott00 commented 1 year ago

We have to support escape characters like \n, \t or \r. Right now they don't get parsed. I don't know if it is possible to let swift handle this for all strings by default...

flofriday commented 1 year ago

Sure if swift can handle these that would be nice. This feature too is nice to have but not strictly necessary and we should focus first on making the language correct first with our core features.

flofriday commented 1 year ago

But if we implement this it would also be lovley if we could have string interpolation like swift 😍

Jozott00 commented 1 year ago

Yes, but it is quite difficult to built a solid cli program without\n haha (for the showcase demo example)

flofriday commented 1 year ago

true yeah we should handle that, also it would be nice to have a print without the newline.

Jozott00 commented 1 year ago

yes, probably just differ between println and print is the easiest way

Jozott00 commented 1 year ago

implemented