introspection (and Perl 6)

Aaron Trevena aaron.trevena at gmail.com
Tue Jan 22 09:27:08 GMT 2008


On 21/01/2008, Dave Hodgkinson <davehodg at gmail.com> wrote:
>
> On 21 Jan 2008, at 22:40, Jonathan Rockway wrote:
>
> >
> > On Mon, 2008-01-21 at 21:04 +0000, Aaron Trevena wrote:
> >> On 21/01/2008, Ovid <publiustemp-londonpm at yahoo.com> wrote:
> >> actually shorthand for:
> >>>
> >>>   $class.HOW.can('foo');
> >>
> >> Kinda neat. :)
> >>
> >> I don't mind the hat as long as it's shorthand for golfers that I'll
> >> never need to use or read in production code.
> >
> > Why is shorthand "only for golfers"?  Do you really think that
> > Java-style verbosity makes for more readable code?  Both expressions
> > mean the same thing, and are equally readable.
> >
> > Yes, you need to know Perl in order to read Perl.
> >
> > Am I really having this conversation on a pm.org mailing list?
> >
>
> Turn it around. Give me a recipe where these fairways and bunkers are
> useful in the real world.

Yes - exactly. This particular shorthand doesn't seem to be at all
useful outside of golfing, obfu and perl syntax quizes in job
interviews.

Is it really worth replacing a 3 letter self-explainatory method name
with a hat symbol - particularly given in most code scenario's thats a
saving of 2 characters out at least 20.

A.

-- 
http://www.aarontrevena.co.uk
LAMP System Integration, Development and Hosting


More information about the london.pm mailing list