OK, I know it doesn't lessen the hate, but

Aaron Crane wrote:
  print hidden('field_name', $field_value);
[...]
  print hidden(
      -name     => 'field_name',
      -default  => $field_value,
      -override => 1,
  );
[...]
This API is just astoundingly fuckwitted.  I can't conceive of any situation
in which it would be desirable behaviour, and it has caused huge numbers of
bugs in the software I maintain.  And that's in spite of the fact that I
know about this brokenness -- it's so stupid that it's apparently impossible
to remember to use the ridiculous workaround.

  sub hidden {
      return CGI::hidden(-name     => $_[0],
                         -default  => $_[1],
                         -override => 1,
      );
  }

?

N

Reply via email to