<ptolomy>
How many people actually use the revised syntax?
<SmerdyOffice>
-3?
<ptolomy>
that sound accurate.
<ptolomy>
Is it the official default?
<ptolomy>
it is for caml4p, right?
<ptolomy>
but not for the standard library.
SmerdyOffice has quit ["home"]
KrispyKringle has left #ocaml []
pango_ has quit [Remote closed the connection]
<ptolomy>
Damn. My life is lazily evaluated, and I have a very small stack.
KrispyKringle has joined #ocaml
<KrispyKringle>
So in a class definition, I can't use abstract types as I would ordinarily, yes?
<KrispyKringle>
I get Some type variables are unbound in this type:
mrsolo has quit [Read error: 104 (Connection reset by peer)]
<Smerdyakov>
Are you sure you don't mean "polymorphism" instead of "abstract types"?
<KrispyKringle>
No, I'm not, because that is what I meant.
<Smerdyakov>
Why are you using classes, anyway?
<KrispyKringle>
Because I'm implementing a reasonably complex custom data type within which I want to maintain instance data without passing around the instance to all the manipulation functions.
<KrispyKringle>
Does that not make sense?
<Smerdyakov>
I'm not sure. The question is how much of this can be achieved using closures.
<Smerdyakov>
If all the functions operating on a value are in a scope where that value is defined, then everything is automatic.
<KrispyKringle>
right
<KrispyKringle>
Is the object oriented approach generally discouraged? It seems like a lot of stuff (e.g. Hashtbl) doesn't use that style, even when, at least in an imperative language, it would be appropriate.
<KrispyKringle>
I have to confess I've never really used a functional language with OO (unless you count Python).
cmeme has quit [Connection timed out]
<Smerdyakov>
Most OCaml programmers never or rarely use the OO.
pango has joined #ocaml
<KrispyKringle>
Smerdyakov: OK. Because the guy I'm working with on this project said something funny in email when I showed him the class skeleton (and he hasn't done anyhtinig OO in all his code so far).
<KrispyKringle>
So I sorta figured.
<KrispyKringle>
Been doing a lotta Python lately, and haven't touched Haskell for about 6 months, so... :P
cmeme has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
asymptote has joined #ocaml
asymptote has quit [Client Quit]
asymptote has joined #ocaml
<asymptote>
OK, I know this marks me as a simpleton, but... how do I fix "reference to undefined global 'Unix'"?
shirogane has joined #ocaml
<Smerdyakov>
asymptote, you read the first page of documentation on the unix library
<asymptote>
The first page is the "error" type
<asymptote>
what I need is any page of documentation on how to actually load a library
<KrispyKringle>
avlondono: You can abuse me any time. I get off on it.
<Smerdyakov>
I'm not sure which I prefer, since Haskell has those few type classes hardcoded into 'deriving,' instead of exposing a general mechanism for it.
<mauke>
even without deriving, having a generic show is totally worth it
<revision17_>
Smerdyakov: thanks :)
twobitsp1ite has joined #ocaml
twobitsprite has quit [Read error: 104 (Connection reset by peer)]
Skal has joined #ocaml
MisterC has joined #ocaml
threeve has quit []
Skal has quit [Read error: 60 (Operation timed out)]