companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.0 released(!!1!): https://ocaml.org/releases/5.0.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
Tuplanolla has quit [Quit: Leaving.]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
chrisz has quit [Ping timeout: 246 seconds]
chrisz has joined #ocaml
chrisz has quit [Ping timeout: 255 seconds]
chrisz has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
micro has quit [Ping timeout: 258 seconds]
micro has joined #ocaml
<discocaml> <akhilindurti> ```
<discocaml> <akhilindurti> let m1 = Hash_set.create (module String) in
<discocaml> <akhilindurti> let m2 = Hash_set.create (module String) in
<discocaml> <akhilindurti> Hash_set.union m1 m2
<discocaml> <akhilindurti> ```
<discocaml> <akhilindurti> throws `Exception: Invalid_argument "Hashtbl.merge: different 'hashable' values".`
bibi_ has quit [Ping timeout: 260 seconds]
azimut has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bartholin has joined #ocaml
olle has joined #ocaml
Serpent7776 has joined #ocaml
Serpent7776 has quit [Ping timeout: 255 seconds]
dnh has joined #ocaml
bibi_ has joined #ocaml
Tuplanolla has joined #ocaml
Serpent7776 has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olle has quit [Ping timeout: 248 seconds]
bibi_ has quit [Ping timeout: 258 seconds]
waleee has joined #ocaml
bibi_ has joined #ocaml
alphacen1 has quit [Quit: WeeChat 4.0.5]
alphacentauri has joined #ocaml
bartholin has quit [Quit: Leaving]
uncomfy has joined #ocaml
alphacentauri has quit [Quit: WeeChat 4.0.5]
olle has joined #ocaml
rgrinberg has joined #ocaml
azimut has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sand_dull has joined #ocaml
sand_dull has quit [Remote host closed the connection]
bartholin has joined #ocaml
bibi_ has quit [Ping timeout: 264 seconds]
rgrinberg has joined #ocaml
wingsorc has joined #ocaml
azimut has quit [Ping timeout: 252 seconds]
neiluj has joined #ocaml
<neiluj> hi! is there a pipe keyword that acts as a private constructor for a type?
<neiluj> sorry that's vague
<neiluj> like instead of having `private type t = T of int`
neiluj has quit [Read error: Connection reset by peer]
<discocaml> <Kali> no, and that's not how you write private types anyway
<discocaml> <Kali> `type t = private T of int`
<discocaml> <Kali> if you want a `int -> t` function, you must write one yourself
<discocaml> <Kali> unless i misunderstood your question
neiluj has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Anarchos has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
azimut has joined #ocaml
waleee has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
olle has quit [Quit: Lost terminal]
bibi_ has joined #ocaml
alphacentauri has joined #ocaml
neiluj has quit [Ping timeout: 255 seconds]
neiluj has joined #ocaml
<discocaml> <akhilindurti> is there an equivalent of `if let PATTERN = expr`?
<src> I'm trying to figure out this bit https://paste.sr.ht/~sintheta/9be6104bb549fb473c206e81eb4a2754f6483338 from https://cs3110.github.io/textbook/chapters/data/exceptions.html#exception-semantics ;;; "that packet propagates until it reaches a try expression" I don't get it... wouldn't the exception be thrown in the very try block, what does "propagate" mean in this context? Can maybe someone come up with a short
<src> illustration in code of what is meant here?
<discocaml> <Kali> well, in this case, yes
<discocaml> <Kali> it would just be immediately caught
<discocaml> <Kali> but you could have a try-catch around several layers of function calls, and it would travel up the callstack till it reached the try-catch
<octachron_> It depends on the perspective, in "let send () = raise E", the exception will propagate until it reaches an exception handler.
<octachron_> Conversely , within "try f () with ..." when the handler receive an exception, it only know that the exception was raised somewhere in the callgraph of `f` (leaving asynchronous exceptions aside).
<src> is this illustrating the point?
<src> this is basically what is meant?
random-jellyfish has joined #ocaml
<discocaml> <.tibo.> yes
azimut has quit [Ping timeout: 252 seconds]
azimut has joined #ocaml
<src> alright, thanks
<src> it's no different from C++ in that respect which I've dabbled w/
<src> still the exact phrasing threw me off
<src> (thanks to all who chipped in)
gentauro has quit [Read error: Connection reset by peer]
yziquel has joined #ocaml
Serpent7776 has quit [Ping timeout: 240 seconds]
yziquel has quit [Quit: Client closed]
dnh has joined #ocaml
yziquel has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]