Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.1.1 released: https://ocaml.org/releases/5.1.1 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
bgs has quit [Remote host closed the connection]
bgs has joined #ocaml
bgs has quit [Remote host closed the connection]
bgs has joined #ocaml
fererrorocher has quit [Quit: WeeChat 4.2.1]
mima has quit [Quit: leaving]
<discocaml> <regularspatula> i have used otoml and it was fine for my needs. i honestly can't remember why I chose it over toml
waleee has quit [Ping timeout: 256 seconds]
myrkraverk__ has quit [Ping timeout: 255 seconds]
myrkraverk has joined #ocaml
jabuxas has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
pi3ce has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
jabuxas has quit [Ping timeout: 268 seconds]
bgs has quit [Remote host closed the connection]
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #ocaml
bgs has joined #ocaml
bgs has quit [Remote host closed the connection]
bartholin has joined #ocaml
neiluj has joined #ocaml
Guest28 has joined #ocaml
bartholin has quit [Quit: Leaving]
Guest28 has quit [Quit: Client closed]
olle has joined #ocaml
dnh has joined #ocaml
dnh has quit [Client Quit]
romildo has joined #ocaml
dnh has joined #ocaml
alexherbo2 has joined #ocaml
romildo has quit [Quit: Leaving]
sroso has joined #ocaml
chiselfuse has joined #ocaml
sroso has quit [Quit: Leaving :)]
Fardale has joined #ocaml
<discocaml> <andreypopp> ended up with otoml as well
jabuxas has joined #ocaml
malte has quit [Remote host closed the connection]
malte has joined #ocaml
fererrorocher has joined #ocaml
fererrorocher has quit [Quit: WeeChat 4.2.1]
jabuxas has quit [Ping timeout: 268 seconds]
jabuxas has joined #ocaml
mro has joined #ocaml
bartholin has joined #ocaml
waleee has joined #ocaml
neiluj has quit [Ping timeout: 256 seconds]
Serpent7776 has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
jabuxas has quit [Ping timeout: 256 seconds]
Tuplanolla has joined #ocaml
pi3ce has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
waleee has joined #ocaml
Anarchos has joined #ocaml
neiluj has joined #ocaml
jabuxas has joined #ocaml
neiluj has quit [Ping timeout: 256 seconds]
mro has quit [Ping timeout: 260 seconds]
neiluj has joined #ocaml
neiluj has quit [Ping timeout: 268 seconds]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
jabuxas_ has joined #ocaml
jabuxas has quit [Read error: Connection reset by peer]
mro has joined #ocaml
neiluj has joined #ocaml
neiluj has quit [Ping timeout: 255 seconds]
olle_ has joined #ocaml
<olle_> I can't just use GADT on a single constructor in a sum type, can I?
<olle_> I have a AST with statement Hash_set, and part of Hash_set is type which can only be a HashTable type in this case.
<olle_> Hm wonder if LLM can solve such questions...
<discocaml> <Kali> if you can describe what you're looking for better then i can help but it's unclear to me what you're asking
<olle_> Yea one sec
jabuxas_ has quit [Ping timeout: 256 seconds]
<olle_> Hopefully clear :)
<olle_> Just part of the AST def, hope it's enough
<olle_> Maybe I don't understand GADT correctly, but I want to limit which constructors are available in a certain type
<olle_> lvalue can be a bunch of things, but for HashSet statement, I want to limit lvalue to be Variable of string, not the other constructors.
<discocaml> <Kali> oh, ok
<discocaml> <Kali> you can do something like this: https://paste.centos.org/view/7979ffbd
<olle_> oh that's pretty cool
<olle_> Kali is it ok if i copy it to the forum for future reference?
Anarchos has quit [Quit: Vision[]: i've been blurred!]
mro has quit [Ping timeout: 256 seconds]
mro has joined #ocaml
<discocaml> <Kali> yes, but just note that the issue with this method is that because the types of those constructors are distinct, you have to do something to erase the type variable if you ever want to put a Variable ... and a Property_access ... in the same container / return them from the same function
<discocaml> <Kali> you can't i.e. have a `variable lvalue list` containing Property_access or Object_access or vice versa
<olle_> Hm good point
<discocaml> <Kali> `type erased_lvalue = Erase : _ lvalue -> erased_lvalue`
<olle_> +1
<olle_> If only I was payed for writing on this compiler ^^'
alexherbo2 has quit [Remote host closed the connection]
<olle_> paid*?
<discocaml> <Kali> yes, paid
neiluj has joined #ocaml
Anarchos has joined #ocaml
neiluj has quit [Ping timeout: 240 seconds]
bgs has joined #ocaml
olle_ has quit [Ping timeout: 255 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Serpent7776 has quit [Ping timeout: 252 seconds]
bartholin has quit [Quit: Leaving]
neiluj has joined #ocaml
neiluj has quit [Ping timeout: 256 seconds]
neiluj has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
neiluj has quit [Ping timeout: 256 seconds]
neiluj has joined #ocaml
neiluj has quit [Client Quit]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Client Quit]
Tuplanolla has quit [Quit: Leaving.]