you are viewing a single comment's thread
view the rest of the comments
[–] 86 points 11 months ago (3 children)

The advantage of that last approach is that it has side effects and cannot therefore be optimized out by the compiler.

  • source
  • hideshow 3 child comments
  • [–] 13 points 11 months ago (2 children)

    That’s only one advantage. In theory it does not necessarily terminate, so that’s another one.

  • source
  • parent
  • hideshow 2 child comments