fuzion icon indicating copy to clipboard operation
fuzion copied to clipboard

`n => n` causes `fz` to hang, might be good to produce a warning...

Open fridis opened this issue 1 year ago • 0 comments

Try this

> ./build/bin/fz -e 'n => n' 

does not finish... This is not a bug, type inference determines the result of of n to be void and tail call optimization turns this into an endless loop. Not sure if we can find a good criterion —like contains no effectful operations— to decide if an endless recursion (or an endless loop) is worth a warning.

fridis avatar Sep 17 '24 10:09 fridis