<jcob>
how come this is allowed when r is not let rec?
<jcob>
and how come it terminates? That's what I'm confused by the most... x does not seem to decrease before r is called again, so how come r will eventually terminate rather than infinitely recursing?
<d_bot>
<rgrinberg> you need let rec whenever you write `let rec foo = (* term with [foo] *) in ...`
<d_bot>
<rgrinberg> In your example, you have `let r () = (* term without foo *)` in `(* term with [r] *)`. this doesn't require `rec`
<octachron>
You might be misreading your code: the definition of `r` ends at line 2.
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jcob>
octachron i see now. Thanks :D
<jcob>
so r does not call itself
<jcob>
i appreciate the help
zebrag has quit [Remote host closed the connection]
<olle>
Indentation matter...
jess has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
jcob has quit [Quit: Client closed]
daachi has quit [Ping timeout: 252 seconds]
mro has quit [Remote host closed the connection]
<cemerick>
so I just blew most of the afternoon because I didn't have an env var set, so Unix.get_env was raising a highly-uninformative Not_found ("Fatal error: exception Not_found; Raised by primitive operation at unknown location")
mro has joined #ocaml
<cemerick>
I have -g on, I exported OCAMLRUNPARAM=b; what else could/should I have done to determine the source of the problem?
mro has quit [Ping timeout: 252 seconds]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wonko has quit [Ping timeout: 265 seconds]
rgrinberg has joined #ocaml
adanwan has joined #ocaml
mro has joined #ocaml
<d_bot>
<Et7f3> Use bytecode mode ?
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rgrinberg>
cemerick the way we work around this in dune is to avoid/wrap all calls that return Not_found. I think that's the convention in core as well.
<d_bot>
<cemerick> @Et7f3 suggesting strace for something this mundane is depressing af 🙃
<cemerick>
rgrinberg: I mean, yeah, if I had foreseen the potential for the failure, I might have prevented it
gravicappa has quit [Ping timeout: 252 seconds]
mro_ has joined #ocaml
mro has quit [Ping timeout: 260 seconds]
shawn has joined #ocaml
zebrag has joined #ocaml
Serpent7776 has quit [Quit: leaving]
troydm has quit [Ping timeout: 252 seconds]
adanwan has quit [Ping timeout: 276 seconds]
Skyfire has quit [Quit: brb]
Skyfire has joined #ocaml
Tuplanolla has joined #ocaml
troydm has joined #ocaml
olle has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Read error: Connection reset by peer]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
adanwan has joined #ocaml
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
hendursaga has quit [Ping timeout: 276 seconds]
hendursaga has joined #ocaml
TheRuralJuror has joined #ocaml
mro_ has quit [Quit: Leaving...]
favonia has quit [Ping timeout: 252 seconds]
TheRuralJuror has quit [Ping timeout: 252 seconds]