You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the string starts with "switch " then do not automatically indent. Downside: we would have to maintain a boolean stack of calls to beginControlFlow such that on symmetric calls to nextControlFlow/endControlFlow know whether or not to unindent. As a result, this may not be worth doing! And that's fine.
This syntactical formatting oddity offends me, but apparently it's idiomatic. I just ported all my use of beginControlFlow for switch to addCode. I'm perfectly fine leaving it like that, but figured I'd file and see what others thought.
The text was updated successfully, but these errors were encountered:
The second option (adding an explicit control statement name) essentially just pushes the idea of keeping a state stack onto the caller, which seems like a good idea since the calling code is probably structured in that way already,
If the string starts with
"switch "
then do not automatically indent. Downside: we would have to maintain a boolean stack of calls tobeginControlFlow
such that on symmetric calls tonextControlFlow
/endControlFlow
know whether or not to unindent. As a result, this may not be worth doing! And that's fine.This syntactical formatting oddity offends me, but apparently it's idiomatic. I just ported all my use of
beginControlFlow
forswitch
toaddCode
. I'm perfectly fine leaving it like that, but figured I'd file and see what others thought.The text was updated successfully, but these errors were encountered: