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/
rajivr has joined #nix-lang
jgart has joined #nix-lang
<jgart> when should I use if versus mkIf?
<qyliss> you only need mkIf if you're using the module system, and need to break an infinite recursion
jgart has quit [Quit: Connection closed]
<siraben> > :v sqrt
<{^_^}> sqrt = a: let iter = x: let x' = (x + a / x) / 2; d = x' - x; in if d < 0.00001 && d > -0.00001 then x' else iter x'; in iter (a / 2.0 + 0.5)
__monty__ has joined #nix-lang
ekleog_ has quit [Quit: WeeChat 2.9]
ekleog has joined #nix-lang
sterni has quit [Ping timeout: 240 seconds]
sterni has joined #nix-lang
sterni has quit [Ping timeout: 272 seconds]
sterni has joined #nix-lang
sterni has quit [Ping timeout: 256 seconds]
sterni has joined #nix-lang
rajivr has quit [Quit: Connection closed for inactivity]
__monty__ has quit [Quit: leaving]