Given a thread like the recent Is it ok to mix functional and oo programming in one package? and the recurring subject matter being discussed there, ignoring the pros and cons as advocated by people in either camp and focusing on the difficulties of "doing it right" as evidenced in the same thread... I wonder whether Perl 6 may support the concept of default object for a given class and an attribute for methods to automatically generate a sub in a sensible namespace which will call the method with the same name on the default object.
I already foresee OO purists (and imperative languages purists as well) twisting their mouths at the idea, but it would be in line with Perl's multiparadigmatic, polyglot and pragmatic nature.
In reply to [Perl 6] auto subs from methods? by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |