Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Re: Re: Re: perl6 & OO

by Elian (Parson)
on Feb 19, 2004 at 18:42 UTC ( #330309=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: perl6 & OO
in thread perl6 & OO

What's wrong with each providing a run method?
Nothing. However, there is a LOT wrong with weakly typed variables and not requiring arguments to be of certain types, just because they all have 'run' methods does not mean I should be able to interchange programs and dogs. That's just asking for trouble.
This'll throw a runtime error for perl 6. If we can wedge it in, we may do it for perl 5 as well under Ponie, but I wouldn't hold your breath there.

There's a chance that this might also throw a compile time error, but that's even less likely. Possibly a warning, but as there really isn't enough information at compile time to emit one with any reliability... probably not.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: perl6 & OO
by chance (Beadle) on Feb 19, 2004 at 23:24 UTC
    Nothing. However, there is a LOT wrong with weakly typed variables and not requiring arguments to be of certain types, just because they all have 'run' methods does not mean I should be able to interchange programs and dogs. That's just asking for trouble.

    As for getters and setters, can you think of any popular language with OO features that doesn't allow them?

    so you are against polymorphism? Or only against polymorphism in weakly typed settings? or am I missing it altothether? thats one of the feratures I'd like to keep. I think its fine to extend things to allow strong typing, but I hope it isn't required.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2021-08-05 01:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (44 votes). Check out past polls.

    Notices?