Replies: 1 comment 1 reply
-
Yeah, we should probably allow that. Thanks for opening the discussion! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, if I need to break a long assignment, I can do it either before or after an operator:
compiles to
That's nice, because it lets me use the second arrangement, and I am personally a believer in the arguments out there that the "operators just after linebreaks" style is clearer and less error prone.
However,
compiles fine to
if (test1 && test2) { result }
whereasis a parse error. Since it is a parse error, could Civet be modified to allow the latter form as well, and compile it into the same code (so that I can have my beloved operators-after-linebreaks pattern back ;-) ?
Thanks for considering.
Beta Was this translation helpful? Give feedback.
All reactions