00:23
Tuplanolla has quit [Quit: Leaving.]
01:11
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:14
rgrinberg has joined #ocaml
02:22
chrisz has quit [Ping timeout: 246 seconds]
02:24
chrisz has joined #ocaml
02:36
chrisz has quit [Ping timeout: 255 seconds]
02:38
chrisz has joined #ocaml
02:57
waleee has quit [Ping timeout: 260 seconds]
03:03
micro has quit [Ping timeout: 258 seconds]
03:03
micro has joined #ocaml
03:05
<
discocaml >
<akhilindurti> ```
03:05
<
discocaml >
<akhilindurti> let m1 = Hash_set.create (module String) in
03:05
<
discocaml >
<akhilindurti> let m2 = Hash_set.create (module String) in
03:05
<
discocaml >
<akhilindurti> Hash_set.union m1 m2
03:05
<
discocaml >
<akhilindurti> ```
03:05
<
discocaml >
<akhilindurti> throws `Exception: Invalid_argument "Hashtbl.merge: different 'hashable' values".`
03:25
bibi_ has quit [Ping timeout: 260 seconds]
04:09
azimut has quit [Ping timeout: 252 seconds]
05:49
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
05:59
bartholin has joined #ocaml
06:14
olle has joined #ocaml
07:47
Serpent7776 has joined #ocaml
08:16
Serpent7776 has quit [Ping timeout: 255 seconds]
09:02
dnh has joined #ocaml
09:29
bibi_ has joined #ocaml
09:33
Tuplanolla has joined #ocaml
09:53
Serpent7776 has joined #ocaml
10:09
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:22
olle has quit [Ping timeout: 248 seconds]
10:32
bibi_ has quit [Ping timeout: 258 seconds]
11:08
waleee has joined #ocaml
11:18
bibi_ has joined #ocaml
12:24
alphacen1 has quit [Quit: WeeChat 4.0.5]
12:26
alphacentauri has joined #ocaml
12:27
bartholin has quit [Quit: Leaving]
12:33
uncomfy has joined #ocaml
13:16
alphacentauri has quit [Quit: WeeChat 4.0.5]
13:36
olle has joined #ocaml
13:47
rgrinberg has joined #ocaml
13:58
azimut has joined #ocaml
14:12
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:13
rgrinberg has joined #ocaml
14:28
waleee has quit [Ping timeout: 260 seconds]
14:37
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:56
sand_dull has joined #ocaml
14:57
sand_dull has quit [Remote host closed the connection]
15:03
bartholin has joined #ocaml
15:25
bibi_ has quit [Ping timeout: 264 seconds]
15:58
rgrinberg has joined #ocaml
16:01
wingsorc has joined #ocaml
16:02
azimut has quit [Ping timeout: 252 seconds]
16:13
neiluj has joined #ocaml
16:13
<
neiluj >
hi! is there a pipe keyword that acts as a private constructor for a type?
16:13
<
neiluj >
sorry that's vague
16:14
<
neiluj >
like instead of having `private type t = T of int`
16:22
neiluj has quit [Read error: Connection reset by peer]
16:25
<
discocaml >
<Kali> no, and that's not how you write private types anyway
16:25
<
discocaml >
<Kali> `type t = private T of int`
16:26
<
discocaml >
<Kali> if you want a `int -> t` function, you must write one yourself
16:26
<
discocaml >
<Kali> unless i misunderstood your question
16:26
neiluj has joined #ocaml
16:37
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:43
Anarchos has joined #ocaml
16:50
rgrinberg has joined #ocaml
16:57
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:12
azimut has joined #ocaml
17:20
waleee has joined #ocaml
17:41
Anarchos has quit [Quit: Vision[]: i've been blurred!]
17:57
olle has quit [Quit: Lost terminal]
18:13
bibi_ has joined #ocaml
18:41
alphacentauri has joined #ocaml
18:50
neiluj has quit [Ping timeout: 255 seconds]
19:12
neiluj has joined #ocaml
19:39
<
discocaml >
<akhilindurti> is there an equivalent of `if let PATTERN = expr`?
20:00
<
src >
illustration in code of what is meant here?
20:03
<
discocaml >
<Kali> well, in this case, yes
20:03
<
discocaml >
<Kali> it would just be immediately caught
20:04
<
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
20:07
<
octachron_ >
It depends on the perspective, in "let send () = raise E", the exception will propagate until it reaches an exception handler.
20:09
<
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).
20:25
<
src >
is this illustrating the point?
20:26
<
src >
this is basically what is meant?
20:26
random-jellyfish has joined #ocaml
20:33
<
discocaml >
<.tibo.> yes
20:36
azimut has quit [Ping timeout: 252 seconds]
20:47
azimut has joined #ocaml
20:59
<
src >
alright, thanks
20:59
<
src >
it's no different from C++ in that respect which I've dabbled w/
21:00
<
src >
still the exact phrasing threw me off
21:00
<
src >
(thanks to all who chipped in)
21:23
gentauro has quit [Read error: Connection reset by peer]
21:27
yziquel has joined #ocaml
21:42
Serpent7776 has quit [Ping timeout: 240 seconds]
22:24
yziquel has quit [Quit: Client closed]
22:50
dnh has joined #ocaml
23:10
yziquel has joined #ocaml
23:35
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]