<systems>
everyone on the mailing list is dreaming of a pure ocaml graphic lib, sadly no one with the skills seems interested
<systems>
ocaml, need to attract more serious and skilled programmers
<systems>
i am not one :(
<Smerdyakov>
Then become one!
<mattam>
which mailing list ?
<systems>
yea i should one day
<systems>
:)
<mattam>
hmm... funny coincidence... where you watching a film Smerdyakov ?
<Smerdyakov>
mattam, do you mean just now?
<mattam>
just before
<mattam>
were you even
<Smerdyakov>
No. I was eating.
<Smerdyakov>
Why do you ask?
<systems>
cause the room was quiet
<systems>
and sunddenly you too commented on the same time
<systems>
was is kinda weird
<systems>
and remarkebale for a lonely progammer soul on irc
<systems>
ooo wow
<systems>
what a conicidence
<systems>
:P
<systems>
;) just teasin
<mattam>
...
<Smerdyakov>
A coincidence fit for a king
<mattam>
what ?
<systems>
hehe
<mattam>
Smerdyakov: what does it mean ?
<Smerdyakov>
It means nothing.
<mattam>
hu... ok
<systems>
huh
<systems>
mattam i was jokin by the way
<mattam>
i did understand this part of the conversation systems :)
<systems>
:) good
<systems>
you just said ...
<systems>
so i felt bad kinda
<mattam>
It's a little difficult to explain, but it should have represented the ... you see in manga's like Nicky Larson ...
<mattam>
when someone feels ridiculous for example
<systems>
manga is pron right
systems has left #ocaml []
szymon has joined #ocaml
szymon has quit [orwell.freenode.net irc.freenode.net]
whee has quit [orwell.freenode.net irc.freenode.net]
polin8 has quit [orwell.freenode.net irc.freenode.net]
themus_ has quit [orwell.freenode.net irc.freenode.net]
teratorn has quit [orwell.freenode.net irc.freenode.net]
lam has quit [orwell.freenode.net irc.freenode.net]
phubuh has quit [orwell.freenode.net irc.freenode.net]
Verbed has quit [orwell.freenode.net irc.freenode.net]
rox has quit [orwell.freenode.net irc.freenode.net]
bk_ has quit [orwell.freenode.net irc.freenode.net]
mattam has quit [orwell.freenode.net irc.freenode.net]
Smerdyakov has quit [orwell.freenode.net irc.freenode.net]
bk_ has joined #ocaml
mattam has joined #ocaml
whee has joined #ocaml
polin8 has joined #ocaml
Smerdyakov has joined #ocaml
Verbed has joined #ocaml
phubuh has joined #ocaml
themus_ has joined #ocaml
rox has joined #ocaml
teratorn has joined #ocaml
lam has joined #ocaml
mattam has quit [orwell.freenode.net irc.freenode.net]
bk_ has quit [orwell.freenode.net irc.freenode.net]
Smerdyakov has quit [orwell.freenode.net irc.freenode.net]
bk_ has joined #ocaml
mattam has joined #ocaml
Smerdyakov has joined #ocaml
rox has quit [orwell.freenode.net irc.freenode.net]
rox has joined #ocaml
rox has quit [orwell.freenode.net irc.freenode.net]
rox has joined #ocaml
Verbed has quit [orwell.freenode.net irc.freenode.net]
Verbed has joined #ocaml
Verbed has quit [orwell.freenode.net irc.freenode.net]
Verbed has joined #ocaml
Verbed has quit [orwell.freenode.net irc.freenode.net]
Verbed has joined #ocaml
Verbed has quit [orwell.freenode.net irc.freenode.net]
Verbed has joined #ocaml
Verbed has quit [orwell.freenode.net irc.freenode.net]
Verbed has joined #ocaml
Verbed has quit [orwell.freenode.net irc.freenode.net]
Verbed has joined #ocaml
rox has quit [orwell.freenode.net irc.freenode.net]
rox has joined #ocaml
rox has quit [orwell.freenode.net irc.freenode.net]
rox has joined #ocaml
skylan has quit [Connection timed out]
Xcalibor has quit ["Terminando cliente"]
bk_ has quit ["I'll be back"]
themus_ has quit [Read error: 110 (Connection timed out)]
themus_ has joined #ocaml
srv has joined #ocaml
docelic has joined #ocaml
docelic has quit ["Client Exiting"]
CybeRDukE has joined #ocaml
CybeRDukE has quit ["A mathematician is a machine for converting coffee into theorems."]
systems has joined #ocaml
systems has left #ocaml []
docelic has joined #ocaml
docelic has quit ["Client Exiting"]
mellum has quit [orwell.freenode.net irc.freenode.net]
mellum has joined #ocaml
foxster has quit [Client Quit]
foxster has joined #ocaml
polin8 has quit [Read error: 104 (Connection reset by peer)]
systems has joined #ocaml
pattern_ has joined #ocaml
<systems>
sup
<teratorn>
boing
systems has quit [Nick collision from services.]
systems has joined #ocaml
bk_ has joined #ocaml
systems has quit [Read error: 110 (Connection timed out)]
systems has joined #ocaml
systems has quit [Client Quit]
srv has quit [Remote closed the connection]
CybeRDukE has joined #ocaml
det has joined #ocaml
det has quit ["TE) (Swing them udders"]
bk_ has quit ["I'll be back"]
bk_ has joined #ocaml
polin8 has joined #ocaml
mattam_ has joined #ocaml
mattam has quit [Read error: 110 (Connection timed out)]
Xcalibor has joined #ocaml
<Xcalibor>
greetings
<teratorn>
boing?
<Xcalibor>
teratorn: what?
<teratorn>
nothing (:
<Xcalibor>
ah :)
<Xcalibor>
I'm learning ocaml and find it really interesting and fun to program... today I managed to make a program that works like unix cat(1) and I almost cried like a newbie... :-)
<Xcalibor>
vtery nice :-)
brwill has joined #ocaml
brwill is now known as brwill|zzz
CybeRDukE has quit ["Home is where you hang your @"]
pattern_ has quit ["..."]
jt`` has joined #ocaml
docelic has joined #ocaml
<teratorn>
hehehe
systems has joined #ocaml
<Xcalibor>
hi there :)
<systems>
hi libor
<Xcalibor>
question: i can do: let rec fact n = if n < 1 then 1 else n * (fact (n - 1));;
<systems>
yea
<Xcalibor>
how can I do it using match ... with? because I can use match n with 1 -> 1 | etc... but not express the n < 1...
<whee>
Xcalibor: match n with x when x < 1 -> ...
<systems>
match n with 0
<Xcalibor>
or, equivalent, I can leave numbers <= 1 to the | _ -> 1 pattern, but how to express the n > 1 part?
<systems>
not 1
<Xcalibor>
when?
<systems>
wheeeeeee
<whee>
use the "when ..." part to handle that
<systems>
:) sup yo
<whee>
systems: frantically trying to find a job :)
<systems>
good luck
<systems>
:)
<Xcalibor>
mmm... but when... um
<Xcalibor>
i didn't know when was optional to express those conditions...
<Xcalibor>
because I don't need when to express the exact values: let rec fact2 n = match n with 1 -> 1 | _ -> n * (fact (n - 1));;
<whee>
you just use when if there's a time you need to apply some other check to a pattern
<whee>
with fact it might be a good idea to make sure it's not a negative number somewhere in there
pattern_ has joined #ocaml
systems has quit [Excess Flood]
systems has joined #ocaml
<Xcalibor>
whee: indeed
<Xcalibor>
but as a toy function for learning, it was ok enough
<whee>
indeed
<Xcalibor>
let rec fact3 n = match n with x when x < 1 -> 1 | _ -> n * (fact (n - 1));;
<Xcalibor>
okis... i understand... we create a kind of alias to match the values of n... nice
<whee>
I don't think you need to, using _ when n < 1 -> .. should work as well
<whee>
I usually do anyway, it doesn't add any overhead
<Xcalibor>
but i already use _ in the other branch of the pattern...
<whee>
_ is just a "match anything" pattern
<whee>
so n will match against _, but then it'll check the guard
<Xcalibor>
let rec fact4 n = match n with _ when n < 1 -> 1 | _ -> n * (fact (n - 1));;
<Xcalibor>
ok, you are right... it works perfectly...
<whee>
it'd probably be better to raise an exception if it's < 0, though
<whee>
probably Invalid_argument, hrm
<whee>
I forget all the standard exceptions :\
<Xcalibor>
or better, define the gamma function and the let fact n = gamma (n -1);; (* ;-) *)
<whee>
go for it :P
jt`` has quit ["Client exiting"]
<whee>
gah I need to start catching up on ocaml news