Which language has the best multi-line string literals and why

Follow

@sir
- |+ -plus keeps newlines
Yaml has pretty nice multi-line string literals.
You can even specify them to end in a newline!
- |- # pipe-minus eats them
Or you can have them end without a newline.
(That might be your preference)

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml