Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.13.0 released: https://ocaml.org/releases/4.13.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
pieguy128_ has quit [Ping timeout: 240 seconds]
pieguy128 has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
<d_bot> <leviroth> Yeah, that sounds right
serpent has joined #ocaml
Serpent7776 has quit [Ping timeout: 265 seconds]
brettgilio has quit [Read error: Connection reset by peer]
brettgilio has joined #ocaml
<hackinghorn> I see some code use 'open Core' but the open_in is still from stdlib. Why is that so?
zebrag has quit [Remote host closed the connection]
<hackinghorn> hmm I think I'm silly
<d_bot> <leviroth> Core doesn't necessarily shadow every function in stdlib, yeah
mbuf has joined #ocaml
gravicappa has joined #ocaml
[itchyjunk] has quit [Read error: Connection reset by peer]
xd1le has joined #ocaml
gravicappa has quit [Ping timeout: 265 seconds]
dwt_ has quit [Read error: Connection reset by peer]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wonko has joined #ocaml
shawnw has quit [Ping timeout: 245 seconds]
wonko has quit [Ping timeout: 260 seconds]
mbuf has quit [*.net *.split]
hackinghorn has quit [*.net *.split]
cemerick has quit [*.net *.split]
ansiwen has quit [*.net *.split]
johnel has quit [*.net *.split]
xenu has quit [*.net *.split]
mg has quit [*.net *.split]
hackinghorn has joined #ocaml
mbuf has joined #ocaml
mg has joined #ocaml
ansiwen has joined #ocaml
cemerick has joined #ocaml
xenu has joined #ocaml
johnel has joined #ocaml
hackinghorn has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
glassofethanol has joined #ocaml
olle has joined #ocaml
hendursa1 has joined #ocaml
hendursaga has quit [Ping timeout: 276 seconds]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
bartholin has joined #ocaml
hendursa1 has quit [Remote host closed the connection]
hendursaga has joined #ocaml
kakadu has joined #ocaml
gravicappa has joined #ocaml
serpent is now known as Serpent7776
rond_ has joined #ocaml
hackinghorn has joined #ocaml
<hackinghorn> hi, what's wrong with my code here? let inchan = (try open_in "test1.json" with e -> raise e) in ()
<hackinghorn> apparently, removing 'in ()' works
<d_bot> <NULL> Unless you're planning to change it later, the construction `try ... with e -> raise e` seems useless
<Fardale> Why do you catch an exception to just reraise it?
<octachron> the `in` makes `let ... in ()` an expression rather than a definition
<d_bot> <NULL> As for your problem, when you are at the toplevel (or module level, basically when you're not inside something else), you write definitions
<d_bot> <NULL> Definitions take the form `let pat = expr` with no terminating token (no `in`)
<hackinghorn> yeahh, but I didnt expect it to be a syntax error :/
<d_bot> <NULL> Adding an `in` makes it a local definition, which is only expected as part of a bigger "global" definition
<d_bot> <NULL> (where local definition is just one of the constructions to write an expression)
<hackinghorn> hmm thanks, I will try to dig this
Haudegen has quit [Quit: Bin weg.]
<d_bot> <leviroth> There's nothing wrong (syntactically, at least) with putting expressions at the top level of a module.
<d_bot> <leviroth> It's just that it creates a parsing ambiguity that you have to resolve by putting a `;;` in front of the expression.
Haudegen has joined #ocaml
rond_ has quit [Quit: Client closed]
motherfsck has joined #ocaml
drewolson9 has quit [Quit: The Lounge - https://thelounge.chat]
drewolson has joined #ocaml
favonia has quit [Ping timeout: 265 seconds]
Tuplanolla has joined #ocaml
bartholin has quit [Quit: Leaving]
xd1le has quit [Quit: xd1le]
dwt_ has joined #ocaml
favonia has joined #ocaml
rgrinberg has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
favonia has quit [Ping timeout: 265 seconds]
favonia has joined #ocaml
Soni has quit [Ping timeout: 252 seconds]
glassofethanol has quit [Quit: leaving]
waleee has joined #ocaml
Haudegen has joined #ocaml
Soni has joined #ocaml
dstein64 has quit [Ping timeout: 264 seconds]
dstein64 has joined #ocaml
olle has quit [Ping timeout: 252 seconds]
hendursaga has quit [Remote host closed the connection]
hendursaga has joined #ocaml
favonia has quit [Ping timeout: 246 seconds]
hackinghorn has quit [Quit: Leaving]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
favonia has joined #ocaml
olle has joined #ocaml
mbuf has quit [Quit: Leaving]
wonko has joined #ocaml
waleee has quit [Ping timeout: 268 seconds]
favonia has quit [Quit: Leaving]
rgrinberg has joined #ocaml
waleee has joined #ocaml
olle has quit [Ping timeout: 245 seconds]
Tuplanolla has quit [Quit: Leaving.]
gravicappa has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
shawnw has joined #ocaml
zebrag has joined #ocaml
wonko has quit [Ping timeout: 250 seconds]
favonia has joined #ocaml
rgrinberg has quit [Ping timeout: 252 seconds]
<cemerick> I'm seeing this attempting to `opam install` dependencies on a 4.12 switch: `unmet availability conditions: sys-ocaml-version = "4.12.0"`. How is that possible?
<companion_cube> Sounds like that's about the system switch
<companion_cube> I guess
<cemerick> it's weird, only happens when building on top of an official docker image
rgrinberg has joined #ocaml
<smondet[m]> maybe the official docker image has switched to 4.12.1 ?
rgrinberg has quit [Ping timeout: 265 seconds]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
barko has joined #ocaml
barko has quit [Client Quit]
rgrinberg has joined #ocaml
favonia has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Ping timeout: 265 seconds]
zebrag has quit [Ping timeout: 252 seconds]
zebrag has joined #ocaml
zebrag has quit [Client Quit]
rgrinberg has joined #ocaml
Serpent7776 has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ocaml
shawnw has quit [Quit: Leaving]
Haudegen has quit [Ping timeout: 252 seconds]
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #ocaml
waleee has quit [Ping timeout: 265 seconds]
favonia has joined #ocaml
waleee has joined #ocaml