[geeks] Misuse of Java

Joshua D Boyd jdboyd at cs.millersville.edu
Wed Nov 6 16:18:06 CST 2002


On Wed, Nov 06, 2002 at 10:09:53PM +0000, David Cantrell wrote:

> > Also, I find parameter passing between functions to be amazingly insane,
> 
> If you mean pass-by-reference, then I beg to disagree.  There are times
> when that's actually quite useful.  The recommended idiom makes that go
> away anyway

Well, I don't really like pass by reference either, but it is somewhat
nescesarry.  My general rule of thumb, for C++ that is, is to copy small
classes and use pointers for large ones.  I believe many "safer"
languages like java, python, smalltalk, and erlang treat everything as a
pointer, but I'm not really sure beyond Java.

I was refering to having all the arguments be in @_. 
 
-- 
Joshua D. Boyd



More information about the geeks mailing list