<Smerdyakov>
Yeah. And there is a potential payoff: Good service from a friendly community. :)
<Smerdyakov>
The trust problem is not substantially different from that involved with signing up with a commercial hosting provider.
<two-face>
sure, but i'm not sending money to random persons
<Smerdyakov>
Why not? You know everyone you buy anything from?
<two-face>
sure
two-face has quit ["Fermeture du client"]
* Riastradh
attempts to stifle laughter.
karryall has quit ["home"]
<Smerdyakov>
Riastradh doesn't want to join because he's a paranoid windbag.
<Riastradh>
No, I don't want to join because I have no need for the service.
<smkl>
does the US have any big co-op companies?
<Smerdyakov>
Yes.
eternite has joined #ocaml
<eternite>
re
KAeL[N7] has joined #ocaml
<KAeL[N7]>
salut
<KAeL[N7]>
j'ai une petite question à propos de filtrages
<KAeL[N7]>
il vaut mieux faire :
<Smerdyakov>
I think English is a better language for getting answers!
<eternite>
yes
<KAeL[N7]>
ok
<KAeL[N7]>
what's better :
<KAeL[N7]>
match A with
<eternite>
match a with
<KAeL[N7]>
(x,y) when y=z -> ...
<KAeL[N7]>
or :
<KAeL[N7]>
match a with
<KAeL[N7]>
(x,y) -> if y=z then ...
<Smerdyakov>
'match A with' could be valid but boring. :)
<eternite>
;)
<KAeL[N7]>
i don't really knowhow ocaml perfom the "match" so is it better to use "if ,, then" or "when" ?
<eternite>
Doing as you want is ok
<Smerdyakov>
The match will be performed so as to give identical results to if you tried each case in order.
<Smerdyakov>
I don't know how this works if you use side-effecting expressions in when-clauses, though.
<eternite>
'=' have side-effect ?
<Smerdyakov>
Nope. I didn't say his example had side effects.
<smkl>
it can throw an exception
<Smerdyakov>
smkl, when?
<eternite>
stack out ?
<phubuh>
I love the ambiguity of that question
<KAeL[N7]>
what's the cost ? if i want to compare "y" with 2 or more values, is it the same to use "when" ?
<smkl>
when you compare elems that includes functions
<eternite>
cost is the same
<smkl>
include
<Smerdyakov>
smkl, oh, because OCaml does equality checks in an idiotic way. :D
<eternite>
Or when you compare recursive strucure ?
<Smerdyakov>
smkl, type classes or even SML equality types would mean you'd never need to raise an exception for an equality check.
<smkl>
eternite: yeah
The-Fixer has quit ["Goodbye"]
The-Fixer has joined #ocaml
<Hadaka>
anyone here who's well versed in ocaml and it's object code, preferably also it's implementation
<Hadaka>
um, that was supposed to be a question :)
<phubuh>
you'll probably have better luck on the mailing list
<Hadaka>
nods
<Hadaka>
I'll fish a bit here with questions though :)
<Hadaka>
Anyone know if it's possible in any way to have non-virtual methods in ocaml objects? Or the same as java's final methods? That is - to have some means to access object data through a function that can be inlined?
<mellum>
Just use a function?
<Hadaka>
but how can that access object data?
<Hadaka>
other than going through lazy binding methods yet again
<mellum>
Hm, I don't know, I haven't really used the OO stuff... I thought you could access them
<Hadaka>
As far as I know, only methods can be accessed from objects - and it's kind of obvious that there can be no inlined code there as long as we support subtyping, but still
Scullder has joined #ocaml
<mellum>
Why does it have to be an object? Can't you just use a struct?
Scullder has left #ocaml []
<Hadaka>
well then I can't get lazy binding resolution on the methods that I _would_ wish it on
<Hadaka>
ofcourse I can store all the data in a struct - and have no variables in the object itself - and hook those two together somehow, but that seems overly complicated
<Hadaka>
if I go down that lane, I might as well implement virtual function tables by myself
KAeL[N7] has quit ["Leaving"]
joel_ is now known as jrosdahl
<Hadaka>
a question about the different networks - when sharing mp3 files, if the id3 and id3v2 tags are different, the hash changes and they will appear as different files - are there any networks which would do anything against this?
<Hadaka>
whooops
buggs has joined #ocaml
lam has quit [Read error: 110 (Connection timed out)]
simon- has joined #ocaml
asqui has joined #ocaml
eternite has quit ["Arlg connection crash!"]
two-face has joined #ocaml
two-face has quit ["Client exiting"]
chrisu has joined #ocaml
maihem has joined #ocaml
<simon->
is there a getchar() of ocaml?
<simon->
I'm reading a paper that mentions read_line and only this.
<simon->
I'm unable to find a standard library reference