uiua-lang / uiua

A stack-based array programming language
https://www.uiua.org
MIT License
1.51k stars 106 forks source link

[Feature Request] add multiline string #529

Closed hamidb80 closed 1 month ago

hamidb80 commented 1 month ago

Overall experience with the language

Hey! Hope you're doing well

I've had really fun time playing the your programming language and it seems AMAZING so far! The best part I've had with language was its documentations and the code formatter (i.e. both replacing glyphs, coloring function/modifier by number of arguments, and replacing the ## with output)


Feature Description

I'm doing Advent of Code in Uiua and what I really miss for quick testing is that, it does not support multi line strings and putting \n at the end of line really bothers readability:

# Ahhh
"1 2 3\n4 5 6\n7 8 9"
# why not?
"""
1 2 3
4 5 6
7 8 9
"""
hamidb80 commented 1 month ago

Oh it seems I didn't notice this feature exists already, sorry

https://www.uiua.org/tutorial/strings

$ 1  8   4 99
$ 5  20  0 0
$ 78 101 1 8