Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Hmm...

by pdcawley (Hermit)
on Sep 26, 2004 at 21:46 UTC ( #394013=note: print w/ replies, xml ) Need Help??


in reply to Re: Hmm...
in thread "if" Considered Harmful in OO programming

You're not railing against the OO way of doing it, you're railing against the idiotic Java way of doing it. Take a look at Smalltalk, where even the simplest 'if' statement is implemented using a message polymorphism on the Boolean class for examples of this sort of thing Done Right.

Of course, you can only really do it right if you're in a language which has blocks/anonymous subroutines, which is where Java falls down.


Comment on Re^2: Hmm...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://394013]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-09-23 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (212 votes), past polls