Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment Re:OO "fixed" in Perl 6 (Score 1) 963

I personly prefer:
method doit ($a, $b, $c) { ... }
to
method doit (::?CLASS $self: $a, $b, $c) { ... }

But of course the other suits your "argument" better. But I don't see a problem with being explicit if you must for some reason and being able to e.g. change $self into $this.

My experience is that I'm much more likely to be able to understand someone's Java or Ruby code than anything on CPAN. That holds true even for bad Java code that throws up a zillion warnings in Eclipse/PMD.

CPAN is like Java library implementation. How often do you read that? Secondly my opinion is the reverse, Java is so verbose that I have to read 2-4 times more code in Java than in Perl, which is harder to remember. Also somebody who doesn't know to write Perl, usually writes as in shell and that is pretty simple. I prefer flexibility over simplicity, therefore Perl to Java.

Slashdot Top Deals

Their idea of an offer you can't refuse is an offer... and you'd better not refuse.

Working...