TIL: That I can call the update function recursively in #elmlang. No idea why I thought that was off limits. Time to go improve some code!
For example. old_canResolve has three mutually-tail-recursive functions. It can stack overflow. canResolve fixes. https://github.com/billstclair/spokes/commit/27bb936d044cfa90aa84da0dd22a09efcf4d3f0a …
-
-
Thanks for sharing (always good to know what to look out for). I was thinking of just using it for a single recursion, but will be cautious.
-
Since those mutually-recursive functions are let-bound in a single outer function, the compiler COULD generate tail calls, but it doesn't.
Fin de la conversation
Nouvelle conversation -
Le chargement semble prendre du temps.
Twitter est peut-être en surcapacité ou rencontre momentanément un incident. Réessayez ou rendez-vous sur la page Twitter Status pour plus d'informations.