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
Look at the WhileOtherwise macro. First of all, it defines firstHit as a mutable. Secondly, it sets firstHit = true all the time (this will probably be optimized by the compiler, but still seems unnecessary).
Wouldn't it be possible to just use def firstHit = $cond instead? No need for a mutable variable, no need to set it in the loop. Maybe the language doesn't work that way?
The text was updated successfully, but these errors were encountered:
I noticed a very weird implementation in here: https://github.com/rsdn/nemerle/blob/master/macros/core.n
Look at the WhileOtherwise macro. First of all, it defines firstHit as a mutable. Secondly, it sets firstHit = true all the time (this will probably be optimized by the compiler, but still seems unnecessary).
Wouldn't it be possible to just use def firstHit = $cond instead? No need for a mutable variable, no need to set it in the loop. Maybe the language doesn't work that way?
The text was updated successfully, but these errors were encountered: