Skip to content

String literal concatenation #2476

Answered by scauligi
mcejp asked this question in Q&A
Jul 29, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Since Hy has prefix operators, it's easiest to just explicitly concatenate your different strings. Indeed, the pprint function from Hyrule does exactly that:

=> (hyrule.pprint "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")
(+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "
   "tempor incididunt ut labore et dolore magna aliqua.")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kodiologist
Comment options

Answer selected by mcejp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants