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/
mechap has quit [Quit: WeeChat 4.0.2]
szkl has quit [Quit: Connection closed for inactivity]
azimut has quit [Ping timeout: 240 seconds]
waleee has quit [Ping timeout: 264 seconds]
MarvelousWololo has joined #ocaml
chrisz has quit [Ping timeout: 244 seconds]
chrisz has joined #ocaml
MarvelousWololo has quit [Read error: Connection reset by peer]
MarvelousWololo has joined #ocaml
spip has quit [Quit: Konversation terminated!]
MarvelousWololo_ has joined #ocaml
MarvelousWololo has quit [Ping timeout: 264 seconds]
MarvelousWololo_ has quit [Read error: Connection reset by peer]
MarvelousWololo has joined #ocaml
MarvelousWololo has quit [Quit: MarvelousWololo]
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
neuroevolutus has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
aljazmc has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
bartholin has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Read error: Connection reset by peer]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
energizer_ is now known as energizer
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
Serpent7776 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ocaml
neuroevolutus has quit [Quit: Client closed]
ralu1 has quit [Remote host closed the connection]
Serpent7776 has quit [Ping timeout: 244 seconds]
Tuplanolla has joined #ocaml
azimut has joined #ocaml
amk has quit [Ping timeout: 252 seconds]
spip has joined #ocaml
Serpent7776 has joined #ocaml
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
<discocaml> <gantsev.denis> I believe there is a way to define the "{}" access for arrays, but i don't remember the exact syntax?
<discocaml> <gantsev.denis> I checked stdlib, but couldn't find it neither
amk has joined #ocaml
gareppa has joined #ocaml
<discocaml> <gantsev.denis> Ah yes thank you
micro has quit [Remote host closed the connection]
micro has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
aljazmc_ has joined #ocaml
aljazmc_ has quit [Remote host closed the connection]
aljazmc_ has joined #ocaml
MarvelousWololo has joined #ocaml
aljazmc_ has quit [Quit: Leaving]
aljazmc has quit [Quit: Leaving]
aljazmc has joined #ocaml
TrillionEuroNote has quit [Ping timeout: 252 seconds]
TrillionEuroNote has joined #ocaml
aljazmc has quit [Quit: Leaving]
szkl has joined #ocaml
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Client Quit]
aljazmc has joined #ocaml
<discocaml> <xavierm02_> Is there a standard way of showing ppx_expect tests in the documentation?
aljazmc_ has joined #ocaml
aljazmc has quit [Quit: Leaving]
aljazmc_ has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Quit: Leaving]
aljazmc has joined #ocaml
waleee has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Quit: Leaving]
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
Soni has quit [Remote host closed the connection]
aljazmc has quit [Remote host closed the connection]
Soni has joined #ocaml
<discocaml> <sim642> Maybe mdx?
uncomfy has joined #ocaml
perrierjouet has quit [Quit: WeeChat 4.0.2]
<discocaml> <xavierm02_> That should work. Thanks!
perrierjouet has joined #ocaml
perrierjouet has quit [Client Quit]
perrierjouet has joined #ocaml
perrierjouet has quit [Quit: WeeChat 4.0.2]
uncomfy has quit [Remote host closed the connection]
perrierjouet has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Client Quit]
aljazmc has joined #ocaml
aljazmc has quit [Quit: Leaving]
<discocaml> <chrde> what's the correct syntax to destructure a type in a let statement? e.g: ```
<discocaml> <chrde> type t = Point * Float * Float
<discocaml> <chrde>
<discocaml> <chrde> let do_something t =
<discocaml> <chrde> let (origin, width, height) = t in
<discocaml> <chrde> ...
<discocaml> <chrde> ```
<discocaml> <hockletock> you can use shorthand: let do_something (origin, width, height) =
<discocaml> <chrde> is it only supported when t is a function parameter?
<discocaml> <._null._> As opposed to what?
<discocaml> <Kali> no, you can do it in any let binding
<discocaml> <Kali> `let (a,b,c) = (1,2,3)`
<discocaml> <chrde> A library Foo defines
<discocaml> <chrde>
<discocaml> <chrde> ```
<discocaml> <chrde> type t = Point * float * float
<discocaml> <chrde> let create () = (* return a t *)
<discocaml> <chrde> ```
<discocaml> <chrde>
<discocaml> <chrde> and the caller does
<discocaml> <chrde> ```
<discocaml> <chrde> let do_something () =
<discocaml> <chrde> let origin, width, height = Foo.create() in
<discocaml> <chrde> ...
<discocaml> <chrde> ```
<discocaml> <Kali> parenthesis are not necessary for tuples
<discocaml> <Kali> parentheses*
<discocaml> <Kali> this is why lists use ; and not ,
<discocaml> <chrde> ah, the library defines `t` as private... 🤦‍♂️ I guess that's why
<discocaml> <._null._> That would indeed explain why you can't
wingsorc has joined #ocaml
<discocaml> <froyo> you can destruct with private
<discocaml> <froyo> do you mean abstract?
<discocaml> <._null._> Oh right, sorry
szkl has quit [Quit: Connection closed for inactivity]
waleee has joined #ocaml
bartholin has quit [Ping timeout: 260 seconds]
bartholin has joined #ocaml
szkl has joined #ocaml
bartholin has quit [Quit: Leaving]
Serpent7776 has quit [Ping timeout: 244 seconds]
gareppa has quit [Quit: WeeChat 3.8]
anpad has quit [Ping timeout: 246 seconds]
anpad has joined #ocaml
anpad has quit [Ping timeout: 260 seconds]
pandeyan has joined #ocaml
Tuplanolla has quit [Ping timeout: 260 seconds]
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml
aljazmc has quit [Remote host closed the connection]
aljazmc has joined #ocaml