Indentation-aware multi-line string literals (and/or an equivalent compile-time function)

jmh530 john.michael.hall at gmail.com
Thu Feb 27 17:09:46 UTC 2025


On Wednesday, 26 February 2025 at 23:26:31 UTC, Adam D. Ruppe 
wrote:
> [snip]
>
> fyi OpenD shipped this last week:
>
> https://dpldocs.info/this-week-in-d/Blog.Posted_2025_02_20.html#outdenting-heredoc-strings
>
> here's my implementation in the compiler, as you can see it 
> wasn't hard:
> https://github.com/opendlang/opend/commit/c2937ab3719ed0cb9589e0baa6f52a84a56ddb07

Cool.


More information about the dip.ideas mailing list