Re:Crafting Formulas: Lambdas All the Way Down
by mrkeen on Tuesday August 06, 2024 @11:36AM
(#41171913)
I suspect it's to exclude a denominator of 0.
[ Parent
| on HN ]
Re:Crafting Formulas: Lambdas All the Way Down
by pierrebai on Tuesday August 06, 2024 @11:59AM
(#41172130)
No, since they use an integer (Z) as the denominator. So their representation support having -1 (i.e 0) as the denominator.
Re:Crafting Formulas: Lambdas All the Way Down
by marvinborner on Tuesday August 06, 2024 @12:12PM
(#41172257)
Yes, this is mostly a leftover from initial versions that used a natural number as denominator. It doesn't seem to make a noticeable difference in performance though, since increments are a very basic operation.
I think leaving this in the article makes the non-zero denominator more explicit. It also allows easier adoption to other numeral systems :)