Does this type of simplification come from thinking like "the users", or am I just strange? Does this seem like a huge improvement to others? Anyone else felt "from the beginning" that Win32::API should be creating code refs, like that was the "natural" interface to provide?
I totally agree. A similar example for me is this from DBI:
$rc = $sth->bind_col($col_num, \$col_variable); $rc = $sth->bind_columns(@list_of_refs_to_vars_to_bind);
Ive never understood why that isnt:
As inside it could easily be:$rc = $sth->bind_col($col_num, $col_variable); $rc = $sth->bind_columns(@list_to_bind);
ormy ($col_num)=@_; my $col_variable=\$_[1];
my @refs=map { \$_ } @_;
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
In reply to Re: How to make Win32::API easy to use
by demerphq
in thread How to make Win32::API easy to use
by tye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |