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?
<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.