sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
smimou has quit ["bli"]
malc_ has quit ["leaving"]
johnnowak has joined #ocaml
postalchris has quit [Read error: 110 (Connection timed out)]
pstickne has joined #ocaml
mbishop has quit [Remote closed the connection]
bluestorm has quit ["Konversation terminated!"]
Submarine has quit [Remote closed the connection]
mbishop has joined #ocaml
CosmicRay has joined #ocaml
Smerdyakov has quit [Remote closed the connection]
Smerdyakov has joined #ocaml
johnnowak has quit []
Mr_Awesome has joined #ocaml
m3ga has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
vorago has quit [Read error: 110 (Connection timed out)]
CosmicRay has quit [Read error: 110 (Connection timed out)]
postalchris has joined #ocaml
diffbavis has quit [Read error: 54 (Connection reset by peer)]
postalchris has quit [Read error: 110 (Connection timed out)]
Smerdyakov has quit ["Leaving"]
Mr_Awesome has quit ["...and the Awesome level drops"]
diffbavis has joined #ocaml
dark_light has quit [Read error: 104 (Connection reset by peer)]
shawn has quit [Read error: 145 (Connection timed out)]
bluestorm has joined #ocaml
love-pingoo has joined #ocaml
diffbavis has quit [Read error: 54 (Connection reset by peer)]
xpika has joined #ocaml
xpika_ has joined #ocaml
ikaros has quit ["Leaving"]
ikaros has joined #ocaml
xpika has quit [Read error: 145 (Connection timed out)]
johnnowak has joined #ocaml
xpika_ has quit ["Lost terminal"]
ramkrsna has quit [Remote closed the connection]
clog has joined #ocaml
Artimus has joined #ocaml
<Artimus> I'm working on converting an OCAML program to python. I was wondering if someone could explain what a short (3 line) function does? I think it just sets an argument as a global variable and throws an exception if it isn't given a proper argument...
<Artimus> let value_of_option x = match x with
<Artimus> | Some(s) -> s
<Artimus> | None -> failwith "value_of_option None"
<Artimus> (done)
<flux-> it does not set any global variables
<flux-> the parameter x can be of two kinds: either it's some value, or its nothing
<flux-> if it's some value, it extracts the value (the returned value can only be a value, not a 'maybe' value)
<flux-> it it's nothing, it throws an exception
<Artimus> oh, ok...
<flux-> it's a strange direction of porting I would say, though :-)
<Artimus> flux-: The problem is, maintaining this program has become a nightmare. The original author wrote it in OCAML and disappeared. Besides, our project is already using python in many other places. But I do find some aspects of the language interesting
<flux-> it's a shame that the non-c-languages don't interoperate nicely
<flux-> although ocaml actually has a quite nice perl-interface (disclaimer: I haven't actually used it)
<flux-> ocaml, haskeel, sml don't have a huge impedance mismatch and they should be possible to interoperate.. but instead the only way is to go the C-route
bluestorm_ has joined #ocaml
falconair has joined #ocaml
bluestorm has quit [Read error: 113 (No route to host)]
falconair_ has quit [Read error: 110 (Connection timed out)]
bluestorm_ has quit [Read error: 104 (Connection reset by peer)]
bluestorm_ has joined #ocaml
<flux-> hmh, socket option TCP_NODELAY apparently cannot be set with ocaml :(
Artimus has left #ocaml []
whatsup103 has joined #ocaml
<whatsup103> yoooooo
Smerdyakov has joined #ocaml
CosmicRay has joined #ocaml
malc_ has joined #ocaml
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
diffbavis has quit [Read error: 54 (Connection reset by peer)]
slipstream-- has quit [Read error: 110 (Connection timed out)]
love-pingoo has quit ["Connection reset by pear"]
clog has joined #ocaml
ikaros has quit ["Leaving"]
ikaros has joined #ocaml
prly has joined #ocaml
prly_ has joined #ocaml
prly has quit [Read error: 110 (Connection timed out)]
swater has quit [Remote closed the connection]
swater has joined #ocaml
prly has joined #ocaml
prly__ has joined #ocaml
malc_ has joined #ocaml
prly_ has quit [Read error: 110 (Connection timed out)]
prly has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
Submarine has quit [Remote closed the connection]
fax has quit [Read error: 104 (Connection reset by peer)]
Smerdyakov has quit [Read error: 110 (Connection timed out)]
shawn has joined #ocaml
Mr_Awesome has joined #ocaml
Smerdyakov has joined #ocaml
_JusSx_ has quit [Client Quit]
malc__ has joined #ocaml
swater has quit ["Quat"]
malc_ has quit [Read error: 145 (Connection timed out)]