Taaus changed the topic of #ocaml to: http://caml.inria.fr/oreilly-book/
<toadx> hrm interesting idea
<toadx> although the leaves would not necessarily be the same
<malc> char and bool comparision is what you need
<toadx> you don't need to do the bool comparison until you are at the last character in the string
<malc> true
<toadx> there are three termination cases: a letter in the word is not in the tree, all the letters in the word are in the tree and the last node has a "*" in it, or all the letters are in the tree, but the last node does not have a "*" in it
<toadx> so, I can write code that works, but its seems messy because I have lots of special cases
<toadx> and weird stuff
<toadx> like I have a function find_node that takes a character and a lex_tree and returns the node for that character
<toadx> but if the character is not in the tree, i didn't know what to return
<toadx> so I stuck the one node in a list, and if there is no node, I return an empty list
<toadx> but a list that will only every have 0 or 1 elements is kind of weird
<malc> raise an exception or use option
<toadx> what is option?
<malc> type 'a option = Some of a | None
<toadx> ah! cool!
<toadx> i was thinking of using an exception, I think it will work better for my code, but option is certainly a nice thing to have around
<malc> aye
<toadx> have you looked at concurrent clean at all?
<malc> yes
<toadx> In my limited experience it seems pretty cool, but very lacking in terms of library support :(
<malc> it is pretty cool, but i like ocaml better
<toadx> interesting! how come?
<toadx> I find ocaml to be more mature and practical for real development, but I like the uniqueness typing and syntax of clean
<malc> im not too fond of lazy languages, i dislike the fact that derived members are implemented as macros in clean, i would miss labeled parameters and variants, ditto classes and functors.
<malc> cant comment on maturity, but practical for real development, here you are right on.
<malc> besides, clean guys lean to windows heavily. so uh
<toadx> that too
<toadx> by maturity, I mean features... e.g, clean does not have exceptions, but it could if someone had the time
<malc> they dont need exceptions all that much
<toadx> mostly I would like to see better linux & library support, but I do not envision that happening too soon
<malc> yep, i guess they are busy with dynamics for the time being
<toadx> anyway, ocaml is definately great for the stuff I need to do, so now I just need to get better at using it
<toadx> maybe someday I will have enough money to pay the clean developers to do it my way :)
<malc> heh
toadx has left #ocaml []
malc has quit ["no reason"]
gl has joined #ocaml
tav` has joined #ocaml
tav has quit [Read error: 104 (Connection reset by peer)]
graydon has quit [Remote closed the connection]
Demitar has joined #ocaml
RagTaff has joined #ocaml
<RagTaff> 'lo
<smkl> hello
<Demitar> Hello.
Demitar has quit []
RagTaff has quit [Read error: 104 (Connection reset by peer)]
malc has joined #ocaml
scipient has joined #ocaml
tav` is now known as tav
tav is now known as a7^V
a7^V is now known as i7^V
i7^V is now known as tav
malc has quit ["no reason"]
gene9 has joined #ocaml
gene9 has quit ["b"]
gene9 has joined #ocaml
gene9 has quit ["Client Exiting"]
malc has joined #ocaml