Duh v D'oh

Eden Cardim edencardim at gmail.com
Fri Nov 7 18:10:05 GMT 2008


On Fri, Nov 7, 2008 at 2:08 PM, Paul Makepeace <paulm at paulm.com> wrote:
> I don't think that's so exciting that this equivalent isn't acceptable in
> its stead,
>
> config = default
> config.update(user_provided)

Ditto :)

> I think I prefer the slightly more explicit nature of this way , even.

Well, the way I see it, "for k in my_dict" is also implicit, and since
you've manifested your preference of that construct over the explicit
"for keys %dict", in favour of readability, it is now clear that YMMV
in regard to explicitness.

> Would be interesting exercise to compare/contrast these perl idioms and
> their Language X equivalents and see where perl really shines, or not.

Yes, that'd be cool and instructive, since I haven't had the time to
dig in to things like Python and Ruby. I'll confess that my vision of
Perl practicity might be clouded by the previous C, C++ and Java
experiences.

-- 
   Eden Cardim       Need help with your Catalyst or DBIx::Class project?
  Code Monkey                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://edenc.vox.com/            http://www.shadowcat.co.uk/servers/


More information about the london.pm mailing list