[Melbourne-pm] Newbie crypto/bcrypt question
Alfie John
alfiej at fastmail.fm
Fri May 23 03:09:18 PDT 2014
On Fri, May 23, 2014, at 07:10 PM, Toby Wintermute wrote:
> Using hashes to pass data structures around is another terrible idea
> that's commonly used in Perl.
> How often have you seen code that does something like:
>
> my $data = { firstname => "Toby", surname => "Winter" };
> enable_mononym($data) unless $foo->{sirname};
>
> No compile time error. No run-time warning. Awesome :/
I know you're right about this, and I'll get flamed, but I like the
freedom of optional parameter and hash key checking. At least if I
wanted strict parameter checking, a sprinkle of boiler plate and it's
there. But yet, your example does make a good point!
Alfie
--
Alfie John
alfiej at fastmail.fm
More information about the Melbourne-pm
mailing list