smimou changed the topic of #ocaml to: OCaml 3.08.3 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
Sataniel has joined #ocaml
<Sataniel> hi 2 all
<Sataniel> ðóññêèå åñòü? :)
zzorn has quit ["They are coming to take me away, ha ha"]
Sataniel has left #ocaml []
dan2 is now known as dan2_
dan2_ is now known as dan2
mfurr has joined #ocaml
jewel has joined #ocaml
jewel has quit [Read error: 104 (Connection reset by peer)]
smimou has quit ["?"]
jewel has joined #ocaml
jewel has quit [Read error: 60 (Operation timed out)]
jewel has joined #ocaml
ulfdoz_ has joined #ocaml
tintin has joined #ocaml
ulfdoz has quit [Read error: 110 (Connection timed out)]
mfurr has quit ["Client Exiting"]
vezenchio has joined #ocaml
monochrom has quit ["me!"]
aelfgar has joined #ocaml
<aelfgar> I have two records, both with elements p and data. Is there any way to specify which one I am referring to? They are in separate modules, one is String.t and the other is Context.t
mlh has quit [Client Quit]
Sonarman has quit ["leaving"]
aelfgar has quit ["leaving"]
jewel has quit [Read error: 54 (Connection reset by peer)]
jewel has joined #ocaml
zzorn has joined #ocaml
zzorn is now known as zzorn_away
pango_ has quit [Remote closed the connection]
__DL__ has quit ["Bye Bye"]
ejt has joined #ocaml
veleno has joined #ocaml
<veleno> any one can help me in configuring in a smart way VIM to be a nice ocaml editor ?
nlv11757_ has joined #ocaml
jewel has quit [Read error: 54 (Connection reset by peer)]
<ulfdoz_> re
ulfdoz_ is now known as ulfdoz
<ulfdoz> veleno: I can give you a usable vimrc, but I prefer emacs everything which does not belong to task of system administration.
<veleno> ulfdoz: can you paste it somewhere ?
<ulfdoz> veleno: Moment.
<ulfdoz> veleno: Hope that helps. I haven't written it on my one, so I can give no support.
<mlh_> veleno: omlet?
<ulfdoz> Is it acceptable to paste links to the channel?
<mlh_> (hope so :-)
smimou has joined #ocaml
shawn_ has quit ["Leaving"]
shawn has joined #ocaml
<veleno> mlh_: since omlet is in debian (and so am i) , how do i check if it is working properly ?
gl has quit [Read error: 110 (Connection timed out)]
Banana_ has joined #ocaml
Banana has quit ["Reconnecting"]
gl has joined #ocaml
tintin has quit [Read error: 54 (Connection reset by peer)]
tintin has joined #ocaml
Herrchen has joined #ocaml
vincenz has quit ["leaving"]
<mlh_> veleno: dunno, never used it! i intend to though
vincenz has joined #ocaml
<nlv11757_> can you define more than one thing in a let? or do you have to use nested lets?
<nlv11757_> its not mutually recursive
<mflux> let foo = 42 and bar = 7.0 in ..
Snark has joined #ocaml
<Nutssh> You can do 'let x=... and y = ... ' And you can do 'let rec x= .... and y = ....'
<nlv11757_> their not toplevel, does that matter?
<nlv11757_> their=they're
<nlv11757_> a darn, some are mutually recursive
<mrvn> let x=... and y=... is completly useless. That is just let x=... let y=....
<mflux> not in all cases
<ejt> it's let rec surely ?
<mrvn> Only use would be to shadow an old x in let x=... but still use the old x in y=... which is horribly confusing.
<mrvn> ejt: let rec ... and ... is a different matter.
<mrvn> # let x=1;;
<mrvn> val x : int = 1
<mrvn> # let x=2 and y=x;;
<mrvn> val x : int = 2
<mrvn> val y : int = 1
<nlv11757_> if i do let bla = ... and foo = bla in ... it complains about undefined bla....so it appears not to be recursive
<ejt> no, it's not
_JusSx_ has joined #ocaml
<nlv11757_> alright, then my alternative is nested let's probably
<ejt> you need to do let rec bla = ... and foo = bla
<nlv11757_> owww thats right
<nlv11757_> ocaml has let rec
<ejt> :)
<nlv11757_> but since it is only backreferencing nested let's worked too
<ejt> I tend to use seperate lets
<nlv11757_> not sure which is more elegant
<ejt> and only let rec for mutually recursive functions
<nlv11757_> yeah, i think let rec should be reserved for recursive functions too
<mrvn> nlv11757_: don't use rec if you don't have to. let a=1 in let b=a is perfectly fine.
<nlv11757_> mrvn: that looks best in my current situation indeed....i feel let rec is not meant for things like that
<mrvn> you might accidentaly type a "let rec a x = a x" kind of thing.
<ejt> that should be very easy to debug though
<nlv11757_> i'd rather prevent than debug :P
mlh_ has quit ["brb"]
Herrchen has quit ["bye"]
Submarine has joined #ocaml
blackbishop has quit [Client Quit]
Snark has quit ["Leaving"]
tintin has quit [sterling.freenode.net irc.freenode.net]
gl has quit [sterling.freenode.net irc.freenode.net]
Banana_ has quit [sterling.freenode.net irc.freenode.net]
Banana has joined #ocaml
tintin has joined #ocaml
ejt has quit [Read error: 104 (Connection reset by peer)]
gpciceri_ has joined #ocaml
nlv11757_ has left #ocaml []
veleno has quit ["Client exiting"]
gpciceri_ has quit [Remote closed the connection]
gl has joined #ocaml
vezenchio has quit ["I would kill, with my bare hands, every chimp in the world, if it would save one street junkie with AIDS"]
dan2 has left #ocaml []
<mflux> good evening
Snark has joined #ocaml
pango has joined #ocaml
<ulfdoz> Is there a clean solution, to avoid something like "dangling patterns? E.g. I have code of the form: let f a = match a with pat_1 -> 0 | .. | pat_n -> try raising_fun with exn_1 -> a | exn_2 -> b | pat_n+1 -> 2;; where exn_1 and exn_2 can be raised by raising fun, but pat_n+1 is a pattern which should match a. Today, code like this failed to type check, here, which is no surprise.
<vincenz> use parenthesis
<vincenz> pat_n -> (try raising_fun with .... ) | pat+n+1 ->D
<vincenz> I use pparens for sub matches or trys
<Smerdyakov> begin...end is another equivalent way.
<ulfdoz> Probably I just got confused with parenthesis this morning, currently I encapsulate the try/with in a let/in.
<vincenz> oy
<ulfdoz> There are about 10 Lines, which had to be enclosed, and I couldn't assigned opening and closing parenthesis anymore.
<ulfdoz> Yes, I definitely got confused. It works with parenthesis. Thanks.
mrvn_ has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
Snark has quit ["Leaving"]
znutar has joined #ocaml
Msandin has joined #ocaml
Msandin has quit [Read error: 104 (Connection reset by peer)]
mfurr has joined #ocaml
<ulfdoz> What does that mean: "The function Unix.establish_server never returns normally." (from http://caml.inria.fr/pub/docs/manual-ocaml/libref/Unix.html)
<mfurr> it runs as an infinite loop. for each new connection, the passed function is called with it
<ulfdoz> Ah, thank you.
humasect has quit [Read error: 104 (Connection reset by peer)]
humasect has joined #ocaml
cmeme has quit [Read error: 104 (Connection reset by peer)]
cmeme has joined #ocaml
cmeme has quit [Read error: 104 (Connection reset by peer)]
cmeme has joined #ocaml
cmeme has quit [Client Quit]
cmeme has joined #ocaml
cmeme has quit [Read error: 104 (Connection reset by peer)]
cmeme has joined #ocaml
cmeme has quit [Read error: 54 (Connection reset by peer)]
cmeme has joined #ocaml
cmeme has quit [Client Quit]
cmeme has joined #ocaml
cmeme has quit [Client Quit]
cmeme has joined #ocaml
cmeme has quit [Client Quit]
cmeme has joined #ocaml
cmeme has quit [Client Quit]
tewk has quit [Remote closed the connection]
cmeme has joined #ocaml
cmeme has quit [Client Quit]
cmeme has joined #ocaml
cmeme has quit [Client Quit]
cmeme has joined #ocaml
cmeme has quit [Connection reset by peer]
cmeme has joined #ocaml
cmeme has quit [Client Quit]
cmeme has joined #ocaml
cmeme has quit [Read error: 104 (Connection reset by peer)]
shawn_ has joined #ocaml
Riastrad1 has joined #ocaml
gl has quit [sterling.freenode.net irc.freenode.net]
tintin has quit [sterling.freenode.net irc.freenode.net]
shawn has quit [sterling.freenode.net irc.freenode.net]
picard has quit [sterling.freenode.net irc.freenode.net]
Riastradh has quit [sterling.freenode.net irc.freenode.net]
Riastrad1 is now known as Riastradh
picard has joined #ocaml
_JusSx_ has quit ["leaving"]
mlh has joined #ocaml
cmeme has joined #ocaml
cmeme has quit [Read error: 104 (Connection reset by peer)]
mrvn_ is now known as mrvn
cmeme has joined #ocaml
cmeme has quit [Read error: 104 (Connection reset by peer)]
cmeme has joined #ocaml
zzorn_away has quit ["They are coming to take me away, ha ha"]
cmeme has quit [Read error: 54 (Connection reset by peer)]
cmeme has joined #ocaml
cmeme has quit [Remote closed the connection]
cmeme has joined #ocaml