Skip to main content
2 of 5
Migration of MSO links to MSE links

It's good that this question comes to attention because I have been wondering myself if "best-practice - Should I do A or B?" belongs here or not.

Personally, I feel that they don't, unless you have a good example with real code and some context. See here for an excellent question about this that is on-topic: Perform instruction in loop every time except the last time?

As for your specific question, it lacks both context and real code:

  • What are you really trying to do? How are you really using this in your code and why? (Providing this helps a lot to avoid XY problems)
  • //some statement(s) is not real code. The code you have provided is purely theoretical, and theoretical code should go into a theoretical compiler before being posted here.
Simon Forsberg
  • 59.7k
  • 1
  • 79
  • 174