How to use library code

Welp, one of the code chunks that I thought would make a great library item... turns out that chunk makes great use of triple-quoted strings, which naturally get broken by the comments that are appended to most library lines after they #include. I understand why these appended comments are needed, but they don't allow full use of groovy features.

How about some way to turn them off, like say, compiler directives #commentsoff and #commentson that we could surround sensitive blocks of code with, or maybe even a general preference in the library definition. Or it could avoid appending comments within various multi-line type code blocks. But something that allows full coding features within libraries would be great.

3 Likes

Hmmm, that's an idea... those comments are useful for troubleshooting but aren't really needed once debugging is done.

3 Likes

:point_up_2: I second this. :point_up_2: