<flux>
I suppose especially in the cases where you have partial application, but you expect a side effect
<flux>
I did some lazy programming yesterday, and I must say it does offer some tricks to pure functional programming where you might usually need to use side effects..
<flux>
but I can easily see if it can also produce runtime errors if you aren't careful
<flux>
I haven't yet tried my code, I've only compiled it :-)
<flux>
(but the nature of the code is such that I think being compilable also means it'll work..)
olleolleolle has left #ocaml []
Snark has joined #ocaml
thermoplyae has joined #ocaml
mwc has quit ["Leaving"]
ttamttam has joined #ocaml
olleolleolle has joined #ocaml
olleolleolle has left #ocaml []
l_a_m has joined #ocaml
Yoric[DT] has joined #ocaml
<Yoric[DT]>
hi
Tetsuo has joined #ocaml
thermoplyae has quit ["daddy's in space"]
filp has joined #ocaml
Morphous has joined #ocaml
Amorphous has quit [Read error: 110 (Connection timed out)]
filp has quit [Read error: 104 (Connection reset by peer)]
petchema has joined #ocaml
filp has joined #ocaml
det has quit [Remote closed the connection]
seafood_ has quit []
rwmjones has joined #ocaml
OChameau has joined #ocaml
Morphous has quit [Read error: 110 (Connection timed out)]
rwmjones has quit ["Closed connection"]
rwmjones has joined #ocaml
middayc has joined #ocaml
letrec has joined #ocaml
<letrec>
Hi! I was reading a paper which said that the inheritance constructs found in OO languages could be implemented in OCaml using functors (I understand), parametric polymorphism (ok) and closures (??). Can somebody comment on that and/or give an example as I simply don't understand.
<letrec>
I don't get how closures can be used to mimic inheritance. Thanks.
<Yoric[DT]>
mmmhhhh....
<Yoric[DT]>
I see how they can be used to mimic public/private.
<Yoric[DT]>
I'm not sure about inheritance.
<Yoric[DT]>
I mean, I've seen all sorts of dirty tricks used to mimic inheritance in JS and some used closures.
<Yoric[DT]>
But I couldn't place a specific role on them.
SIGVTALRM has joined #ocaml
mfp has quit [Nick collision from services.]
SIGVTALRM is now known as mfp
<letrec>
Ok, thanks anyway Yoric
<letrec>
Any pointer on what parametric polymorphism really stand for btw?
<letrec>
I'd like to learn more on that.
hsuh has joined #ocaml
<Yoric[DT]>
letrec: by "really stand for", I assume that the answer " 'a " won't satisfy you ?
hkBst has joined #ocaml
zenhacker_rouan has joined #ocaml
<letrec>
:)
<letrec>
Do you want to mean parametric polymorphism only relates to the ability of the type system to infer generic 'a types to a function?
pango has quit [Remote closed the connection]
Tetsuo has quit ["Leaving"]
Snark has quit ["Ex-Chat"]
<Yoric[DT]>
Well, 'a is the polymorphic parameter.
hsuh has quit [Remote closed the connection]
seafood_ has joined #ocaml
filp has quit ["Bye"]
xavierbot has joined #ocaml
seafood__ has joined #ocaml
seafood_ has quit [Read error: 110 (Connection timed out)]
brian`` has joined #ocaml
brian` has quit [Read error: 110 (Connection timed out)]
olleolleolle has joined #ocaml
zenhacker_rouan has quit [Read error: 104 (Connection reset by peer)]
RobertFischer has joined #ocaml
Jedai has joined #ocaml
seafood__ has quit []
seafood_ has joined #ocaml
seafood__ has joined #ocaml
seafood_ has quit [Read error: 104 (Connection reset by peer)]
pango has joined #ocaml
pango has quit [Nick collision from Idoru.]
szell` has joined #ocaml
szell has quit [Read error: 110 (Connection timed out)]
szell` is now known as szell
Tetsuo has joined #ocaml
olleolleolle has quit [Read error: 104 (Connection reset by peer)]
olleolleolle has joined #ocaml
RobertFischer has left #ocaml []
olleolleolle has quit []
seafood__ has quit []
seafood_ has joined #ocaml
thelema|away is now known as thelema
Amorphous has joined #ocaml
RobertFischer has joined #ocaml
seafood_ has quit []
seafood_ has joined #ocaml
seafood_ has quit [Client Quit]
ulfdoz has joined #ocaml
Enki_ has joined #ocaml
RobertFischer has left #ocaml []
ttamttam has left #ocaml []
Enki_ has quit ["Quitte"]
jstanley has joined #ocaml
carrumba has joined #ocaml
<jstanley>
Anyone know of some simple example code for doing XML-RPC (or something similar) from OCaml?
szell has quit [Read error: 110 (Connection timed out)]
jderque has joined #ocaml
<Yoric[DT]>
Good evening everyone.
Yoric[DT] has quit ["Ex-Chat"]
jstanley has left #ocaml []
OChameau has quit ["Leaving"]
bongy has joined #ocaml
jstanley has joined #ocaml
<jstanley>
I asked about XML-RPC library availability in OCaml earlier, but does anyone know if there's also a JSON-RPC lib around somewhere? A quick google didn't yield anything.
<thelema>
I recall someone having some JSON / OCaml code. I don't think it included any transport code.
letrec has quit [Read error: 104 (Connection reset by peer)]
letrec has joined #ocaml
ttamttam has joined #ocaml
jderque has quit [Read error: 113 (No route to host)]
jstanley` has left #ocaml []
pattern has joined #ocaml
smimram has joined #ocaml
pattern has quit [Remote closed the connection]
smimou has quit [Read error: 110 (Connection timed out)]
jlouis_ has joined #ocaml
bongy has quit ["Leaving"]
jlouis has quit [Read error: 110 (Connection timed out)]
thermoplyae has joined #ocaml
romanoffi has quit ["Leaving."]
davidr__ has joined #ocaml
davidr__ has quit [Client Quit]
olleolleolle has quit []
<brian``>
@seen snrrrub
jlouis has joined #ocaml
jlouis_ has quit [Read error: 110 (Connection timed out)]
marmottine has quit ["Quitte"]
jstanley has joined #ocaml
<jstanley>
Newbie Ocaml hashtable question: why is let m = Hashtbl.create 10 giving me a compiler error about types that can't be generalized, while interactively the same thing works?
<thelema>
specific error?
<jstanley>
Error: The type of this expression, ('_a, '_b) Hashtbl.t,
<jstanley>
contains type variables that cannot be generalized
<jstanley>
<thelema>
you have to use it so it can fix the types.
<jstanley>
ah, so the problem is i haven't actually utilized it in such a way that it can determine concrete types
<thelema>
exactly. It can't generate code for a '_a, '_b hashtbl.t
<jstanley>
yeah, makes sense; i was just confused since it was working interactively. ;)
<jstanley>
(but of course it doesn't have to do anything with that code yet interactively)
ttamttam has left #ocaml []
ita has joined #ocaml
middayc_ has joined #ocaml
bluestorm has quit ["Konversation terminated!"]
middayc has quit [Read error: 110 (Connection timed out)]
<jstanley>
does ocaml have a general-purpose type->string conversion function? e.g. for lists of primitive types?
<thelema>
how could you get a list of elements of different types?
<jstanley>
lists of all the same type
<jstanley>
e.g. i have a list of ints and i'd like to print it without writing my own function to do so
<jstanley>
nothing in the stdlib docs popped out oat me in either List or String
<jstanley>
s/oat/out
RobertFischer has joined #ocaml
<jstanley>
e.g. a toString polymorphic function of some kind
<thermoplyae>
no, it doesn't
<thermoplyae>
otherwise things like print_int wouldn't exist :)