you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 11 months ago

If it were a magic lang item, you could treat the resulting value in a special way. Then, you could create an optimization pass for this situation: if a variable is assigned random in a loop and the loop can only be exited with a certain value, the compiler can coerce the magic rand value to it.

  • source
  • parent