Closed DrPhil closed 8 months ago
Ah yes, good point. We should document the limitation of the JS target where these values do exist.
Ah! So it does depend on runtime! I thought I tested it on the BEAM when I tested it in the language-tour repo, but didn't know to look for the target = "javascript"
line. Cool, that explains it - I was expecting the BEAM to crash. :)
\
In chapter 0 lesson 5, "basics/floats":
But Gleam does seem to have an
Infinity
(and also-Infinity
) andNaN
float value:I don't know enough Gleam to know what the lesson should say instead - but I think this misleading comment should be removed in any case.
This is my first evening with Gleam. Sorry if this is already known - I tried searching and couldn't find any previous discussions about this at least. :)