reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.14k stars 428 forks source link

Feature request: concatenate adjacent strings #2641

Closed yawaramin closed 2 years ago

yawaramin commented 3 years ago

E.g. like in C or Python:

let hello = "Hello, " "World!"; // = "Hello, " ++ "World!"

This would make it convenient to break up a long string into multiple lines in the source code, without introducing line breaks in the resulting string. E.g.:

let doc =
  "This command lets you "
  "do XYZ.";