companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
azimut has quit [Quit: ZNC - https://znc.in]
azimut has joined #ocaml
williewillus has quit [Quit: The Lounge - https://thelounge.chat]
williewillus1 has joined #ocaml
williewillus1 has quit [Remote host closed the connection]
ralu1 has quit [Ping timeout: 240 seconds]
jpds has quit [Ping timeout: 240 seconds]
jpds has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vicfred has quit [Quit: Leaving]
jpds has quit [Ping timeout: 240 seconds]
jpds has joined #ocaml
ralu1 has joined #ocaml
jpds has quit [Ping timeout: 240 seconds]
jpds has joined #ocaml
wingsorc has quit [Quit: Leaving]
jpds has quit [Ping timeout: 240 seconds]
jpds has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
waleee has quit [Ping timeout: 248 seconds]
<d_bot> <Drakonis> https://okmij.org/ftp/ML/MetaOCaml.html there's always this
<d_bot> <Drakonis> i hope it actually does get mainlined
jpds has quit [Ping timeout: 240 seconds]
jpds has joined #ocaml
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
williewillus5 has joined #ocaml
williewillus5 is now known as williewillus
Haudegen has joined #ocaml
hsw_ has joined #ocaml
hsw__ has joined #ocaml
hsw has quit [Ping timeout: 260 seconds]
hsw_ has quit [Ping timeout: 260 seconds]
hsw__ has quit [Ping timeout: 240 seconds]
shawnw has joined #ocaml
adanwan has quit [Ping timeout: 240 seconds]
adanwan_ has joined #ocaml
gravicappa has joined #ocaml
Serpent7776 has joined #ocaml
gopiandcode has quit [Quit: WeeChat 3.0]
rgrinberg has joined #ocaml
rgrinberg has quit [Ping timeout: 250 seconds]
hsw has joined #ocaml
hsw has quit [Quit: Leaving]
xgqt has quit [Remote host closed the connection]
xgqt has joined #ocaml
olle has joined #ocaml
spip has joined #ocaml
bobo has quit [Ping timeout: 240 seconds]
JosEduardo[m] has quit [Quit: You have been kicked for being idle]
zebrag has joined #ocaml
bartholin has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Ping timeout: 246 seconds]
<mclovin> hi, the next oups meetup will be on the 12th of may: https://discuss.ocaml.org/t/oups-meetup-may-2022-french-only
Haudegen has quit [Quit: Bin weg.]
bobo has joined #ocaml
spip has quit [Ping timeout: 246 seconds]
perrierjouet has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
szkl has joined #ocaml
mro has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Ping timeout: 260 seconds]
shawnw has quit [Ping timeout: 272 seconds]
rgrinberg has joined #ocaml
mro has quit [Remote host closed the connection]
shawnw has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
berberman has quit [Quit: ZNC 1.8.2 - https://znc.in]
berberman has joined #ocaml
shawnw has quit [Ping timeout: 272 seconds]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
waleee has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
wingsorc has joined #ocaml
<d_bot> <inkbottle> It is strange to me that "the (`type typeconstr-name`) syntax construction by itself does not make polymorphic the type variable it introduces". https://ocaml.org/manual/locallyabstract.html (locally abstract types vs explicit polymorphism doesn't return many hits)
<d_bot> <inkbottle> I think I've got at least part of the answer there https://www.reddit.com/r/ocaml/comments/n23hca/why_do_locally_abstract_types_exist/, it is always so useful to ask questions.
mro has joined #ocaml
bartholin has quit [Quit: Leaving]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
bartholin has joined #ocaml
spip has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
bobo has quit [Ping timeout: 272 seconds]
Techcable has quit [Ping timeout: 240 seconds]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Anarchos has joined #ocaml
<Anarchos> hello
<companion_cube> mclovin: the "vidéo" links are broken
<companion_cube> on the OUPS website
<d_bot> <nave01314> Not sure if this helps, but I have always thought of ‘type’ syntax as a “there exists” rather than “for all”
<companion_cube> at least the recent ones
<companion_cube> slides neither actually :/
vicfred has joined #ocaml
<d_bot> <inkbottle> Yes, thanks. Every bit of information is helping. And the "exists" formulation is evocative.
mro has quit [Remote host closed the connection]
<d_bot> <NULL> If you're still curious, I had this discussion a few months ago
<d_bot> <NULL> (IRC users: I don't know how to point to an earlier message that can pass the bridge)
<d_bot> <NULL> a way to point that can pass*
<d_bot> <inkbottle> I've found the discussion, giving it a look.
<d_bot> <NULL> I mean, you're not on IRC, so I'd hope my pointer works for you
<d_bot> <inkbottle> yes, found it, thanks
Tuplanolla has joined #ocaml
<d_bot> <ec> What's a good name for a "getter" function that extracts a sub-value from a record?
<d_bot> <NULL> `fun r -> r.field` ?
<d_bot> <NULL> You rarely name those
<d_bot> <ec> ```ocaml
<d_bot> <ec> type 'errors t = {
<d_bot> <ec> error : 'errors;
<d_bot> <ec> context : string list; }
<d_bot> <ec>
<d_bot> <ec> val name_this : 'errors t -> 'errors
<d_bot> <ec> ```
<d_bot> <NULL> Watch out when you paste code blocks, it spams IRC (though 7 lines is fine apparently)
<sim642> The common thing is to just name them same as the field
rgrinberg has joined #ocaml
<d_bot> <NULL> `get_error` would seem adequate, but if the type is public you don't really need to wrap `fun r -> r.error`
<d_bot> <NULL> Unless you always want to access this field, in which case a prefix notation may be useful
<d_bot> <ec> type is indeed going to be private, i suspect
<d_bot> <ec> thanks!
waleee has quit [Ping timeout: 256 seconds]
Haudegen has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
rgrinberg has quit [Ping timeout: 276 seconds]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
<d_bot> <KW78> ocamlformat is doing eta-expansion (transforming `let f x = fun y -> ...` to `let f x y -> ...` I spent way too much time already but could not find an option to avoid this ?
<d_bot> <KW78> (posted on #editor-support discord but I believe more people are on irc)
rgrinberg has joined #ocaml
<qwr> imho this isn't eta-expansion with curring that ocaml uses, these two should be literally equivalent
bartholin has quit [Quit: Leaving]
vicfred has quit [Quit: Leaving]
<d_bot> <KW78> Sure (except value restriction), but the point is about readability. Sometimes I want to convey fact that this binding is a thunk/suspended computation
<sim642> Maybe give a return type to f which is itself a function type?
mro has joined #ocaml
waleee has joined #ocaml
<d_bot> <KW78> that works, a bit on the heavy side
bobo has joined #ocaml
spip has quit [Ping timeout: 272 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
mro has quit [Read error: Connection reset by peer]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
bobo has quit [Ping timeout: 240 seconds]
spip has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
olle has quit [Ping timeout: 240 seconds]
bobo has joined #ocaml
spip has quit [Ping timeout: 276 seconds]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
gravicappa has quit [Ping timeout: 276 seconds]
spip has joined #ocaml
bobo has quit [Ping timeout: 256 seconds]
epony has quit [Ping timeout: 260 seconds]
Serpent7776 has quit [Quit: leaving]
vicfred has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olle has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
mro has quit [Quit: Leaving...]
Tuplanolla has quit [Quit: Leaving.]
Everything has joined #ocaml
Everything has left #ocaml [#ocaml]