irc.freenode.net changed the topic of #ocaml to: OCaml 3.08 "Bastille Day" Release available ! -- Archive of Caml Weekly News: http://pauillac.inria.fr/~aschmitt/cwn , A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ , A free book: http://cristal.inria.fr/~remy/cours/appsem, Mailing List (best ml ever for any computer language): http://caml.inria.fr/bin/wilma/caml-list
Anvil_Vapre has joined #ocaml
Anvil_Vapre has quit [Client Quit]
mrsolo_ has quit [Read error: 54 (Connection reset by peer)]
Xolution has quit [Read error: 104 (Connection reset by peer)]
Xolution has joined #ocaml
mrsolo_ has joined #ocaml
mrsolo_ has quit [Read error: 104 (Connection reset by peer)]
maihem has quit ["Read error: 54 (Connection reset by chocolate)"]
mlh has joined #ocaml
_fab has joined #ocaml
Xolution has quit [Read error: 104 (Connection reset by peer)]
fab_ has quit [Read error: 110 (Connection timed out)]
Xolution has joined #ocaml
z|away has joined #ocaml
<z|away> Is there an easy way to do something like this that is valid?: let x = (2,3) :: if true then (5,5) :: [(1,2)] in
<Smerdyakov> Every if needs an else, unless the body type is unit.
<Smerdyakov> This should not be a problem. No other option would make sense.
<z|away> Well, I don't want to add anything to the list if it is false..
<Smerdyakov> OK, then don't.
<z|away> and returning a unit doesn't match the type (i,i) ..
<z|away> so I can't do it..
<Smerdyakov> Right.
<Smerdyakov> So you'll have to use an if with a different body type.
<z|away> I'm not sure what that would be..
<Smerdyakov> I would suggest (int * int) list.
<z|away> Well, I can't change the type. So I assume I have to change it to a ref list and do an "if true x := ..." after the list is already built. But I was hoping not to have to do that..
<Smerdyakov> Try breaking it up into separate let's.
<z|away> Yup, or that. Ok, I was hoping for some hidden trickery I was missing. :)
<Smerdyakov> I am quite glad that no such "hidden trickery" exists in OCaml. :P
<z|away> :)
budjet has joined #ocaml
budjet has quit [Remote closed the connection]
vezenchio has joined #ocaml
tomp has joined #ocaml
<mflux> z|away, let x = (2,3) :: ((if true then [(5,5)] else []) @ [(1, 2)]) ?
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
mlh has quit [Client Quit]
mlh has joined #ocaml
mlh has quit [Client Quit]
mrsolo_ has joined #ocaml
_fab has quit [Remote closed the connection]
_fab has joined #ocaml
mlh has joined #ocaml
grirgz has quit ["Free Software For Ever"]
fab_ has joined #ocaml
_fab has quit [Read error: 110 (Connection timed out)]
Iter has joined #ocaml
bk_ has joined #ocaml
bk_ has quit [Client Quit]
bk_ has joined #ocaml
Iter has quit [Read error: 110 (Connection timed out)]
pflanze has joined #ocaml
bk_ has quit [Remote closed the connection]
bk_ has joined #ocaml
mlh has quit [Client Quit]
abarrett has joined #ocaml
slashvar1lri] has joined #ocaml
slashvar[lri] has quit [Read error: 54 (Connection reset by peer)]
fab_ has quit []
vezenchio has quit ["Hydrocon technology produces two waste products: steam and green goo. We dispose of the steam through various vents, strategi]
_fab has joined #ocaml
schwarze has joined #ocaml
maihem has joined #ocaml
<schwarze> 7j #deutschland
<schwarze> oops, sorry
<Robert> Hehe. :)
<schwarze> there'are any post in the mail list about sockets programing? any example?
Xolution has quit [Read error: 104 (Connection reset by peer)]
maihem has quit ["Read error: 54 (Connection reset by chocolate)"]
Xolution has joined #ocaml
mattam has quit [Remote closed the connection]
Naked has joined #ocaml
Hadaka has quit [Operation timed out]
Naked is now known as Hadaka
mattam has joined #ocaml
Iter has joined #ocaml
mattam has quit [Read error: 60 (Operation timed out)]
_fab has quit [burroughs.freenode.net irc.freenode.net]
abarrett has quit [burroughs.freenode.net irc.freenode.net]
mrsolo_ has quit [burroughs.freenode.net irc.freenode.net]
Riastradh has quit [burroughs.freenode.net irc.freenode.net]
Hipo has quit [burroughs.freenode.net irc.freenode.net]
Lemmih has quit [burroughs.freenode.net irc.freenode.net]
pnou has quit [burroughs.freenode.net irc.freenode.net]
gzl has quit [burroughs.freenode.net irc.freenode.net]
_fab has joined #ocaml
abarrett has joined #ocaml
mrsolo_ has joined #ocaml
Riastradh has joined #ocaml
Hipo has joined #ocaml
Lemmih has joined #ocaml
gzl has joined #ocaml
pnou has joined #ocaml
mattam has joined #ocaml
<gl> pnou !
Iter has quit [Read error: 110 (Connection timed out)]
schwarze has quit ["El lenguaje ha muerto. Y todas las palabras se han vuelto sospechosas"]
mlh has joined #ocaml
cjohnson has joined #ocaml
cjohnson has quit [Client Quit]
Xolution has quit ["Leaving"]
Xolution has joined #ocaml