in reply to How to make Win32::API easy to use
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 { \$_ } @_;
---
demerphq
demerphq
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to make Win32::API easy to use
by tye (Sage) on Jun 02, 2004 at 20:56 UTC |
In Section
Meditations