logoalt Hacker News

Blackarealast Sunday at 5:44 PM1 replyview on HN

We can just use a crate for that and don't have to have this horrible comment like style that brings its own category of problems. https://docs.rs/indoc/latest/indoc/


Replies

Tweylast Sunday at 6:57 PM

And what if you do want to include two spaces at the beginning of the block (but not any of the rest of the indentation)?

Choice of specific line-start marker aside, I think this is the best solution to the indented-string problem I've seen so far.

show 1 reply