Synthetica has quit [Quit: Connection closed for inactivity]
<EsperLily>
"double INF"?
<EsperLily>
when I run that `let b = ...` line I just get "error: out-of-range JSON number"
<EsperLily>
and if I want inf I can just do `1.0e308 * 2`
<EsperLily>
I find it interesting that Nix makes division by zero illegal, but doesn't make the production of infinity illegal
<infinisil>
Why should that be illegal?
<EsperLily>
My best guess is because Nix doesn't really need to do a lot of real math, so catching division by zero is probably more likely to surface useful errors than producing infinity
Synthetica has joined #nix-lang
__monty__ has joined #nix-lang
<puck>
EsperLily: ah, i had issues with float literals with exponents in them, which is why i have the builtins.fromJSON
<puck>
> 1e308 # fails
<{^_^}>
attempt to call something which is not a function but an integer, at (string):274:1