top | item 31469115

(no title)

Metasyntactic | 3 years ago

Hey there! Language designer of Raw Strings here.

The use of whitespace to affect the meaning of strings was actually a big ask from the community and was due to a lot of confusion and frustration over the years from customers who didn't like that if they had a multiline string that it would then not indent properly with all the rest of their code and would cause things to look cluttered and unpleasant.

Users participated in the design here and we got feedback from thousands in multiple venues about this design. The behavior around whitespace here was viewed as being both very beneficial and intuitive.

Finally, to help out here, the VS ide will also draw a line showing what part of the code is content and what is not.

You feel this is overcomplicated, but this was the result of a lot of cooperative design with a lot of the user base to something that was near universally felt to be desirable over not having this behavior. :-)

discuss

order

yyyk|3 years ago

Thanks for Raw Strings! That was one of my annoyances and now it will be much easier.

>Finally, to help out here, the VS ide will also draw a line showing what part of the code is content and what is not.

This will help a lot, especially people who don't expect this behaviour. Practically answers my problem with this (when using VS at least). Still not my preferred solution, but I guess I got outvoted.