adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
AnAverageHuman has quit [Ping timeout: 256 seconds]
AnAverageHuman has joined #ocaml
nullifidian has quit [Ping timeout: 252 seconds]
pierpal has joined #ocaml
nullifidian has joined #ocaml
wham has quit [Remote host closed the connection]
caltelt has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
AnAverageHuman has quit [Ping timeout: 256 seconds]
silver has quit [Read error: Connection reset by peer]
nikivi has quit [Quit: ZNC is awesome]
_habnabit has quit [Ping timeout: 246 seconds]
jerith has quit [Ping timeout: 246 seconds]
jerith has joined #ocaml
cantstanya has quit [Ping timeout: 256 seconds]
cantstanya has joined #ocaml
_habnabit has joined #ocaml
nikivi has joined #ocaml
bobajett has joined #ocaml
mfp has quit [Ping timeout: 240 seconds]
Jesin has joined #ocaml
nahra has joined #ocaml
bobajett has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
AnAverageHuman has joined #ocaml
jgkamat has quit [Ping timeout: 240 seconds]
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 255 seconds]
jgkamat has joined #ocaml
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
govg has joined #ocaml
hdon has quit [Ping timeout: 240 seconds]
emias has quit [*.net *.split]
tsani has quit [*.net *.split]
stux|RC has quit [*.net *.split]
adrien has quit [*.net *.split]
Amaan has quit [*.net *.split]
vsiles has quit [*.net *.split]
freusque has quit [*.net *.split]
lobo has quit [*.net *.split]
err0ne has quit [*.net *.split]
eagleflo has quit [*.net *.split]
orbitz has quit [*.net *.split]
interaxia has quit [*.net *.split]
dinosaure has quit [*.net *.split]
sheijk has quit [*.net *.split]
marvin2 has quit [Ping timeout: 250 seconds]
emias has joined #ocaml
stux|RC has joined #ocaml
tsani has joined #ocaml
interaxia has joined #ocaml
adrien has joined #ocaml
eagleflo has joined #ocaml
sheijk has joined #ocaml
Amaan has joined #ocaml
vsiles has joined #ocaml
freusque has joined #ocaml
orbitz has joined #ocaml
dinosaure has joined #ocaml
err0ne has joined #ocaml
lobo has joined #ocaml
tg has quit [Ping timeout: 255 seconds]
tg has joined #ocaml
Jesin has quit [Quit: Leaving]
gravicappa has joined #ocaml
AnAverageHuman has quit [Ping timeout: 256 seconds]
pierpal has quit [Read error: Connection reset by peer]
jao has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
<aecepoglu[m]> can only recursive calls be tail calls or can any function call be a tail call?
freyr69 has joined #ocaml
discord2 has quit [Remote host closed the connection]
discord has joined #ocaml
ggole has joined #ocaml
barockobamo has joined #ocaml
Haudegen has joined #ocaml
jao has joined #ocaml
caltelt has quit [Ping timeout: 255 seconds]
notnotdan[m] has quit [Remote host closed the connection]
notnotdan[m] has joined #ocaml
<def`> any* call in tail position is a tail call
orbifx has joined #ocaml
<def`> (because of some restrictions in native compiler, calls with too many arguments won't be tail call. I think too many is 8 or 9 on AMD64
orbifx has quit [Ping timeout: 245 seconds]
freyr69 has quit [Ping timeout: 250 seconds]
ollehar has joined #ocaml
pippijn has quit [Ping timeout: 245 seconds]
pippijn has joined #ocaml
asymptotically has joined #ocaml
bartholin has joined #ocaml
mfp has joined #ocaml
<Leonidas> what is the syntax to rename an optional argument in the signature?
<Leonidas> `?(foo as bar = false)` doesn't work
freyr69 has joined #ocaml
<Leonidas> ah, `?foo:(bar=false)`
<Leonidas> wild
<def`> I like foo as bar though, nice try :)
jao has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ocaml
<notnotdan[m]> what does that mean? `?foo:(bar=false)`
<notnotdan[m]> Which of these two is the name of the argument?
ziyourenxiang_ has joined #ocaml
<def`> foo is the label of the argument, bar is the variable the value of the argument will be bound to when called, false is the default value
<notnotdan[m]> so in the body of the function you use `bar`, but when you call the funciton you use `foo`?
<def`> yes
<notnotdan[m]> i see, thanks
<rks`> def`: and if I want to add a type annotation ?
<rks`> ah, ?foo:(bar:bool=true) works, great!
<Armael> wat
<notnotdan[m]> wow
<def`> and ?foo:(bar:bool option) if there is no default value :)
<def`> bar is a pattern, so you con deconstruct values, add constraints, etc.
<def`> let f ?foo:((module M) : t = (module M')) () = ();; works with first-class modules too :)
<Leonidas> scary
kakadu has quit [Ping timeout: 245 seconds]
<vsiles> creepy
kakadu has joined #ocaml
<notnotdan[m]> wow
kakadu has quit [Ping timeout: 255 seconds]
<Leonidas> I have a weird issue of updating code from jbuilder to dune where the code stops to build
kakadu has joined #ocaml
<Leonidas> but does not in dune
<Leonidas> I don't understand why it thinks 'b is unit :(
<Armael> what's the type of close? could it be that dune is passing -strict-sequence and jbuilder isn't?
<Leonidas> Armael: judging by the command line on which if barfs dune is passing -strict-sequence and building in jbuilder does not log anything about it so I assume it doesn't.
dhil has quit [Ping timeout: 246 seconds]
<Leonidas> the only place it is ever used is in the test
<Leonidas> I don't see where "Force the left-hand part of each sequence to have type unit." would trigger since push has ('a -> unit) and close is on the RHS with (unit -> 'b) and the other branch of the code is just a raise
<octachron> close is on the LHS of the sequence in the exception branch
silver has joined #ocaml
jao has joined #ocaml
marvin2 has joined #ocaml
<xvilka> hi! How do I supress warning for "open Module"? "open [@ocaml.warning "-33"] Module" doesn't work
<xvilka> and in fact the warning is wrong, since it says module is unused, but I use types and functions from it
<octachron> xvilka, `open[@warning "-33"] M` should work with version 4.06 and later
<Leonidas> octachron: ah. You're right. Oops
<Leonidas> sometimes I wonder about my sanity
<xvilka> octachron: I have OCaml 4.07.1, it doens't
<xvilka> oh, nevermind
<xvilka> it works
<xvilka> I just had second open module in the same file, didn't read the line number
jao has quit [Ping timeout: 246 seconds]
asymptotically has quit [Quit: Leaving]
themsay has joined #ocaml
freyr69 has quit [Remote host closed the connection]
dhil has joined #ocaml
flodin has quit [Read error: Connection reset by peer]
ygrek has joined #ocaml
dhil has quit [Ping timeout: 245 seconds]
themsay has quit [Ping timeout: 246 seconds]
ygrek has quit [Ping timeout: 245 seconds]
jao has joined #ocaml
FreeBirdLjj has joined #ocaml
dhil has joined #ocaml
AnAverageHuman has joined #ocaml
jao has quit [Ping timeout: 250 seconds]
ygrek has joined #ocaml
JimmyRcom has quit [Ping timeout: 250 seconds]
spew has joined #ocaml
mildtaste has quit [Remote host closed the connection]
JimmyRcom has joined #ocaml
jao has joined #ocaml
gahr has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
AnAverageHuman has quit [Ping timeout: 256 seconds]
jbrown has quit [Ping timeout: 258 seconds]
jnavila has joined #ocaml
jnavila has quit [Ping timeout: 246 seconds]
ziyourenxiang_ has quit [Ping timeout: 250 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
ollehar has quit [Ping timeout: 244 seconds]
jao has joined #ocaml
jnavila has joined #ocaml
unyu has quit [Quit: fix config]
unyu has joined #ocaml
jnavila has quit [Ping timeout: 258 seconds]
jnavila has joined #ocaml
barockobamo has quit [Remote host closed the connection]
Haudegen has quit [Remote host closed the connection]
assemblyman has joined #ocaml
jnavila has quit [Ping timeout: 246 seconds]
Jesin has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
Serpent7776 has joined #ocaml
jnavila has joined #ocaml
jnavila has quit [Ping timeout: 257 seconds]
ggole has quit [Quit: Leaving]
Haudegen has joined #ocaml
Haudegen has quit [Remote host closed the connection]
SpiceGuid has joined #ocaml
sagax has quit [Quit: Konversation terminated!]
sagax has joined #ocaml
sagax has quit [Client Quit]
sagax has joined #ocaml
Haudegen has joined #ocaml
kakadu has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 250 seconds]
dhil has quit [Ping timeout: 250 seconds]
SpiceGuid has quit [Quit: ChatZilla 0.9.93 [SeaMonkey 2.49.4/20180713174829]]
AnAverageHuman has joined #ocaml
assemblyman has quit [Quit: ™]
Denommus has joined #ocaml
kakadu has joined #ocaml
gravicappa has quit [Ping timeout: 245 seconds]
jnavila has joined #ocaml
tane has joined #ocaml
ravenousmoose has joined #ocaml
assemblyman has joined #ocaml
AnAverageHuman has quit [Ping timeout: 256 seconds]
jbrown has joined #ocaml
octachron has quit [Quit: ZNC 1.7.2 - https://znc.in]
octachron has joined #ocaml
ygrek has joined #ocaml
jnavila has quit [Ping timeout: 246 seconds]
GreyFaceNoSpace has quit [Quit: Ex-Chat]
SpiceGuid has joined #ocaml
jnavila has joined #ocaml
AnAverageHuman has joined #ocaml
dimitarvp has joined #ocaml
dimitarvp has quit [Quit: Bye]
raduom has joined #ocaml
jnavila has quit [Remote host closed the connection]
freusque has quit [Quit: WeeChat 2.0]
ravenousmoose has quit [Ping timeout: 252 seconds]
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
SpiceGuid has quit [Quit: ChatZilla 0.9.93 [SeaMonkey 2.49.4/20180713174829]]
hdon has joined #ocaml
ravenousmoose has joined #ocaml
SpiceGuid has joined #ocaml
orbifx has joined #ocaml
sagax has quit [Read error: Connection reset by peer]
assemblyman has quit [Quit: ™]
sagax has joined #ocaml
SpiceGuid has quit [Quit: ChatZilla 0.9.93 [SeaMonkey 2.49.4/20180713174829]]
SpiceGuid has joined #ocaml
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnavila has joined #ocaml
ygrek has quit [Ping timeout: 250 seconds]
Serpent7776 has quit [Quit: leaving]
AnAverageHuman has quit [Ping timeout: 256 seconds]
jnavila has quit [Remote host closed the connection]
spew has quit [Quit: going home]
SpiceGuid has quit [Quit: ChatZilla 0.9.93 [SeaMonkey 2.49.4/20180713174829]]
kakadu has quit [Remote host closed the connection]
AnAverageHuman has joined #ocaml
SpiceGuid has joined #ocaml
Denommus has quit [Remote host closed the connection]
kvda has joined #ocaml
ravenousmoose has joined #ocaml
bartholin has quit [Remote host closed the connection]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
themsay has joined #ocaml
AnAverageHuman has quit [Ping timeout: 256 seconds]
SpiceGuid has quit [Quit: ChatZilla 0.9.93 [SeaMonkey 2.49.4/20180713174829]]