adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.06.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.06/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
pierpa has joined #ocaml
Haudegen has quit [Remote host closed the connection]
shinnya has joined #ocaml
<zozozo> kerrhau: Hashtbl.fold (fun key value l -> (key, value) :: l) hashtbl [] ?
mk9 has quit [Quit: mk9]
silver_ has joined #ocaml
silver has quit [Ping timeout: 248 seconds]
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0_ has joined #ocaml
infinity0 has quit [Killed (verne.freenode.net (Nickname regained by services))]
relrod has quit [Quit: .]
cbot has quit [Ping timeout: 252 seconds]
silver_ has quit [Read error: Connection reset by peer]
KeyJoo has quit [Ping timeout: 268 seconds]
FreeBirdLjj has joined #ocaml
sonologico has quit [Ping timeout: 248 seconds]
troydm has quit [Ping timeout: 264 seconds]
mfp has quit [Ping timeout: 268 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
relrod has joined #ocaml
relrod has quit [Changing host]
relrod has joined #ocaml
shinnya has quit [Ping timeout: 268 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
cobreadmonster has quit [Quit: Connection closed for inactivity]
FreeBirdLjj has quit [Remote host closed the connection]
relrod has quit [Quit: .]
relrod has joined #ocaml
relrod has quit [Changing host]
relrod has joined #ocaml
cbot has joined #ocaml
FreeBirdLjj has joined #ocaml
govg has joined #ocaml
troydm has joined #ocaml
troydm has quit [Ping timeout: 265 seconds]
troydm has joined #ocaml
cobreadmonster has joined #ocaml
jao has quit [Ping timeout: 248 seconds]
troydm has quit [Ping timeout: 252 seconds]
pierpa has quit [Quit: Page closed]
jbrown has quit [Ping timeout: 265 seconds]
sonologico has joined #ocaml
mbuf has joined #ocaml
arecacea1 has quit [Remote host closed the connection]
arecacea1 has joined #ocaml
sonologico has quit [Quit: WeeChat 1.9.1]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
FreeBirdLjj has joined #ocaml
KeyJoo has joined #ocaml
ziyourenxiang has joined #ocaml
kakadu has joined #ocaml
cobreadmonster has quit [Quit: Connection closed for inactivity]
groovy2shoes has quit [Ping timeout: 250 seconds]
cbot has quit [Quit: Leaving]
mfp has joined #ocaml
raduom has joined #ocaml
sh0t has joined #ocaml
jnavila has joined #ocaml
kerrhau has quit [Ping timeout: 240 seconds]
dakk has joined #ocaml
dakk has quit [Ping timeout: 268 seconds]
dakk has joined #ocaml
jnavila has quit [Ping timeout: 250 seconds]
ziyourenxiang has quit [Ping timeout: 256 seconds]
FreeBirdLjj_ has joined #ocaml
FreeBirdLjj_ has quit [Client Quit]
Serpent7776 has joined #ocaml
dakk has quit [Ping timeout: 264 seconds]
superherointj has joined #ocaml
silver has joined #ocaml
johnelse is now known as johnel_away
johnel_away is now known as johnelse
johnelse is now known as johnel_away
johnel_away is now known as johnelse
johnelse has quit [Quit: leaving]
argent_smith has joined #ocaml
johnelse has joined #ocaml
solrize has quit [Ping timeout: 265 seconds]
superherointj has quit [Quit: Leaving]
GreyFaceNoSpace has quit [Quit: Ex-Chat]
johnelse is now known as johnel_away
johnel_away is now known as johnelse
TarVanimelde has joined #ocaml
jnavila has joined #ocaml
zolk3ri has joined #ocaml
TheLemonMan has joined #ocaml
raduom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kakadu has quit [Ping timeout: 248 seconds]
kakadu_ has joined #ocaml
zolk3ri_ has joined #ocaml
zolk3ri_ has quit [Client Quit]
_andre has joined #ocaml
silver has quit [Read error: Connection reset by peer]
FreeBirdLjj has quit [Remote host closed the connection]
Haudegen has joined #ocaml
silver has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
raduom has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
jnavila has quit [Quit: Konversation terminated!]
jnavila has joined #ocaml
FreeBirdLjj has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
silver has quit [Read error: Connection reset by peer]
mbuf has quit [Quit: Leaving]
FreeBirdLjj has joined #ocaml
silver has joined #ocaml
jnavila has joined #ocaml
silver has quit [Read error: Connection reset by peer]
FreeBirdLjj has quit [Ping timeout: 268 seconds]
emias has quit [Quit: WeeChat 1.9.1]
mk9 has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
nullifidian has quit [Remote host closed the connection]
shinnya has joined #ocaml
KeyJoo has quit [Ping timeout: 240 seconds]
zolk3ri has quit [Quit: Reconnecting]
zolk3ri has joined #ocaml
johnelse is now known as johnel_away
johnel_away is now known as johnelse
FreeBirdLjj has joined #ocaml
mk9 has quit [Quit: mk9]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
silver has joined #ocaml
mk9 has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
Fistine has quit [Quit: WeeChat 1.6]
tobiasBora has quit [Quit: WeeChat 1.6]
silver has quit [Read error: Connection reset by peer]
_y has quit [Ping timeout: 252 seconds]
Fardale has quit [Ping timeout: 252 seconds]
al-damiri has joined #ocaml
Fardale has joined #ocaml
jbrown has joined #ocaml
govg has quit [Ping timeout: 252 seconds]
FreeBirdLjj has joined #ocaml
dakk has joined #ocaml
Exagone313 has quit [Read error: Connection reset by peer]
Exagone314 has joined #ocaml
govg has joined #ocaml
Exagone314 is now known as Exagone313
silver has joined #ocaml
govg has quit [Ping timeout: 248 seconds]
ziyourenxiang has joined #ocaml
_andre has quit [Read error: Connection reset by peer]
riveter has quit [Ping timeout: 248 seconds]
_andre has joined #ocaml
Jesin has quit [Quit: Leaving]
riveter has joined #ocaml
Jesin has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
jimmyrcom has quit [Ping timeout: 256 seconds]
FreeBirdLjj has joined #ocaml
jimmyrcom has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 248 seconds]
MercurialAlchemi has joined #ocaml
mk9 has quit [Read error: Connection reset by peer]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
MercurialAlchemi has joined #ocaml
mk9 has joined #ocaml
johnelse is now known as johnel_away
FreeBirdLjj has joined #ocaml
johnel_away is now known as johnelse
jnavila has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
jimmyrcom has quit [Ping timeout: 256 seconds]
ziyourenxiang has quit [Ping timeout: 248 seconds]
tg has quit [Ping timeout: 252 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
Haudegen has quit [Read error: Connection reset by peer]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
solrize has joined #ocaml
FreeBirdLjj has joined #ocaml
bbc- has joined #ocaml
bbc has quit [Read error: Connection reset by peer]
<gentauro> I recently made the move to the "dark side" from F# and I'm really missing "named union fields" in OCaml -> https://gist.github.com/gentauro/248040337a473a34f3fde8963b35e1c8
<gentauro> they make code so more readable (I know they are equivalent to a record, but sometimes, union types are more readable)
shinnya has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 264 seconds]
<theblatte> gentauro: what about inline records?
shinnya has joined #ocaml
jao has joined #ocaml
Haudegen has joined #ocaml
<kakadu_> gentauro: how do they resolve conflicts of names?
Haudegen has quit [Read error: Connection reset by peer]
Jesin has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 252 seconds]
silver_ has joined #ocaml
<gentauro> union labels are local to each type
silver has quit [Ping timeout: 248 seconds]
Serpent7776 has quit [Quit: Leaving]
<gentauro> when you pattern match, you can do this -> match foo with | Foo (name = n) -> ... instead of having to do -> match bar with | Bar (_,_,_,_,_,name,_,_,_) -> ...
<thizanne> gentauro: what you want indeed seems exactly like inline records
<thizanne> # type t = Foo of { name : string; age : int};;
<thizanne> # let adult (Foo { age }) = age >= 18;;
<thizanne> val adult : t -> bool = <fun>
<thizanne> (that's almost new, so you may not have heard of it on oldish documentations)
<thizanne> note that you could do almost the same thing before, except you have to name the record first (which is quite more verbose on the type declaration but equivalent when using it):
<thizanne> type info = { name : string; age : int };; type t = Person of info
KeyJoo has joined #ocaml
FreeBirdLjj has joined #ocaml
arecacea1 has quit [Remote host closed the connection]
arecacea1 has joined #ocaml
mal`` has quit [Quit: Leaving]
mal`` has joined #ocaml
aubian has joined #ocaml
dakk has quit [Ping timeout: 256 seconds]
silver_ is now known as silver
<gentauro> thizanne: cool
<gentauro> now we just need "curried records" ;)
<gentauro> type foo = Foo int int
FreeBirdLjj has quit [Ping timeout: 265 seconds]
<thizanne> not gonna happen.
<gentauro> I know ;)
<gentauro> but would save me time ;)
<thizanne> I guess there's a ppx_deriver somewhere for this
FreeBirdLjj has joined #ocaml
zolk3ri has quit [Ping timeout: 248 seconds]
zolk3ri has joined #ocaml
jnavila has quit [Ping timeout: 252 seconds]
FreeBirdLjj has quit [Ping timeout: 256 seconds]
FreeBirdLjj has joined #ocaml
iZsh has quit [Quit: ZNC - http://znc.in]
iZsh has joined #ocaml
marcux has joined #ocaml
webshinra has quit [Remote host closed the connection]
raduom has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
webshinra has joined #ocaml
FreeBirdLjj has joined #ocaml
sh0t has quit [Remote host closed the connection]
FreeBirdLjj has quit [Read error: Connection timed out]
andreas_ has quit [Quit: Connection closed for inactivity]
dakk has joined #ocaml
tg has joined #ocaml
andreas_ has joined #ocaml
TheLemonMan has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
jnavila has joined #ocaml
troydm has joined #ocaml
<adrien> meh
FreeBirdLjj has joined #ocaml
TarVanimelde has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 268 seconds]
bacam has quit [Remote host closed the connection]
bacam has joined #ocaml
pierpa_ has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
dakk has quit [Remote host closed the connection]
dakk has joined #ocaml
groovy2shoes has joined #ocaml
groovy2shoes has quit [Quit: moritura te saluto]
dakk has quit [Ping timeout: 256 seconds]
groovy2shoes has joined #ocaml
nullifidian has joined #ocaml
argent_smith has quit [Quit: Leaving.]
argent_smith has joined #ocaml
argent_smith has quit [Quit: Leaving.]
soupault has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 248 seconds]
mk9 has quit [Quit: mk9]
soupault has quit [Remote host closed the connection]
sigjuice has quit [Ping timeout: 256 seconds]
sigjuice has joined #ocaml
h11 has quit [Quit: WeeChat 1.9.1]
sonologico has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
dakk has joined #ocaml
jnavila has quit [Remote host closed the connection]
dakk has quit [Ping timeout: 248 seconds]
ygrek has joined #ocaml
marcux has quit [Ping timeout: 240 seconds]
kerrhau has joined #ocaml
kerrhau has quit [Changing host]
kerrhau has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
shinnya has joined #ocaml
ziyourenxiang has joined #ocaml