infinisil changed the topic of #nix-lang to: Channel for discussing Nix as a language - https://nixos.org/nix/manual/#chap-writing-nix-expressions - Logs: https://logs.nix.samueldr.com/nix-lang/
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
<puck> huh, interesting error.. right, {^_^} evaluates inside a `with' scope
<puck> EsperLily: also, `double INF' as in, a C double value that is INF (iirc Nix uses doubles? i kinda forgot)
noonien has quit []
noonien has joined #nix-lang
ddellacosta has joined #nix-lang
kalbasit has quit []
kalbasit has joined #nix-lang
kalbasit has quit [Ping timeout: 272 seconds]
jared-w has quit [Ping timeout: 246 seconds]
mpickering has quit [Ping timeout: 248 seconds]
Synthetica has quit [Read error: Connection reset by peer]
manveru has quit [Ping timeout: 264 seconds]
davidtwco has quit [Ping timeout: 246 seconds]
srhb has quit [Ping timeout: 250 seconds]
kalbasit has joined #nix-lang
mpickering has joined #nix-lang
davidtwco has joined #nix-lang
manveru has joined #nix-lang
srhb has joined #nix-lang
mpickering has quit [Ping timeout: 265 seconds]
srhb has quit [Ping timeout: 245 seconds]
manveru has quit [Ping timeout: 272 seconds]
mpickering has joined #nix-lang
srhb has joined #nix-lang
Synthetica has joined #nix-lang
jared-w has joined #nix-lang
Synthetica has quit [Quit: Connection closed for inactivity]
noonien has quit [Quit: Connection closed for inactivity]
ddellacosta has quit [Ping timeout: 268 seconds]
ddellacosta has joined #nix-lang
__monty__ has quit [Quit: leaving]