justinethier / cyclone

:cyclone: A brand-new compiler that allows practical application development using R7RS Scheme. We provide modern features and a stable system capable of generating fast native binaries.
http://justinethier.github.io/cyclone/
MIT License
823 stars 42 forks source link

Cyclone doesn't read `-inf.0` as negative (?) #511

Closed jpellegrini closed 1 year ago

jpellegrini commented 1 year ago
cyclone> -inf.0 
inf.0
cyclone> (= -inf.0 +inf.0)
#t
jpellegrini commented 1 year ago

But it seems to be specific to the reader, since it does represent infinities properly:

(- +inf.0) => -inf.0
justinethier commented 1 year ago

Thanks for the bug report!

Cyclone will now properly distinguish between positive and negative infinity.

jpellegrini commented 1 year ago

Yay! Thanks for the quick fix! :smiley: