Yurik changed the topic of #ocaml to: http://icfpcontest.cse.ogi.edu/ -- OCaml wins | http://www.ocaml.org/ | http://caml.inria.fr/oreilly-book/ | http://icfp2002.cs.brown.edu/ | SWIG now supports OCaml| Early releases of OCamlBDB and OCamlGettext are available
malc has joined #ocaml
lament has quit ["Did you know that God's name is ERIS, and that He is a girl?"]
malc has quit ["no reason"]
gene9 has joined #ocaml
gene9 has quit [Client Quit]
systems has joined #ocaml
foxster has quit [Connection reset by peer]
systems has quit ["Client Exiting"]
gene9 has joined #ocaml
gene9 has quit [Client Quit]
lament has joined #ocaml
lament is now known as Namami
Namami is now known as lament
mrvn_ has left #ocaml []
Kinners has joined #ocaml
Smerdyakov has quit ["REFUCKINGBOOT"]
Smerdyakov has joined #ocaml
mrvn has joined #ocaml
Kinners has quit [Read error: 104 (Connection reset by peer)]
xxd has joined #ocaml
foxster has joined #ocaml
<pattern_> let rec foo = function
<pattern_> -1.0 -> print_string "finished\n"
<pattern_> | x -> foo ( x -. 0.1 )
<pattern_> let _ = foo 1.0
<pattern_> why does this never end?
mrvn_ has joined #ocaml
<mrvn_> pattern: = for floats is insane. never use it
mrvn has quit [Killed (NickServ (Ghost: mrvn_!mrvn@pD9E61973.dip.t-dialin.net))]
mrvn_ is now known as mrvn
<pattern_> mrvn, what is saner?
<mrvn> pattern_: < >
<mrvn> pattern_: a float will almost never be = another.
<pattern_> < and >, or < > ?
<mrvn> < and >
<pattern_> i see
<mrvn> or abs (x-y) < 0.0000001
<pattern_> so i should be able to do:
<pattern_> hmmm
<pattern_> how would i do that with a pattern?
<mrvn> Your float will be -0.999999 instead of -1.0 or something.
<mrvn> x when x <= -1.0 ?
<mrvn> or -0.99
<pattern_> oh, i've never used when in a pattern before
<pattern_> neat
<mrvn> better use if with floats.
<pattern_> why if and not when, as you have above?
<mrvn> Its also good practice to think what happens if some wrong value gets passed as argument. Don#t stop the recursion with x=0, use x<=0 and such stuff.
<pattern_> makes sense
<pattern_> thanks again, mrvn :)
mellum has quit [Read error: 60 (Operation timed out)]
foxster has quit [Read error: 110 (Connection timed out)]
mellum has joined #ocaml
lament has quit ["Did you know that God's name is ERIS, and that He is a girl?"]
xxd has quit [Remote closed the connection]
Kinners has joined #ocaml
Kinners has left #ocaml []
jrosdahl has joined #ocaml
TachYon has joined #ocaml
systems has joined #ocaml
systems has quit ["Client Exiting"]
gene9 has joined #ocaml
TachYon has quit [Remote closed the connection]
gene9 has left #ocaml []
TachYon has joined #ocaml
TachYon has quit [Client Quit]
TachYon has joined #ocaml
mellum has quit ["wech"]
mattam_ has joined #ocaml
mattam has quit [Read error: 60 (Operation timed out)]
TachYon has quit ["Client Exiting"]
mattam has joined #ocaml
mattam_ has quit [Read error: 104 (Connection reset by peer)]
mattam has quit ["leaving"]
Demitar has joined #ocaml
clog has quit [^C]
clog has joined #ocaml
<Demitar> Hello clog.
<Demitar> Just my luck, greeting a bot. =)
<Demitar> [Mail: 3] [#ocaml(+n)]
lament has joined #ocaml
zkhan has joined #ocaml
zkhan is now known as zkzk
zkzk has quit [Client Quit]
lament has quit ["Did you know that God's name is ERIS, and that He is a girl?"]
polin8 has joined #ocaml
Demitar has quit ["Bubbles!"]
polin8 has quit [Read error: 104 (Connection reset by peer)]
polin8 has joined #ocaml
bmenasha has joined #ocaml
mattam has joined #ocaml
two-face has joined #ocaml
foxster has joined #ocaml
TachYon has joined #ocaml
systems has joined #ocaml
<two-face> salam aleikoum
systems has quit ["Client Exiting"]
two-face has left #ocaml []
TachYon has quit [Remote closed the connection]
foxster has quit [Read error: 104 (Connection reset by peer)]
lament has joined #ocaml
foxster has joined #ocaml
TachYon has joined #ocaml
Kinners has joined #ocaml
TachYon has quit [Remote closed the connection]
clam has joined #ocaml
TachYon has joined #ocaml
TachYon has quit [Remote closed the connection]