!0

David Alban extasia at extasia.org
Thu Feb 12 23:59:55 GMT 2009


On Thu, Feb 12, 2009 at 1:41 PM, Abigail <abigail at abigail.be> wrote:
> What's next?
>
>  Readonly my $ZERO => 0;
>  Readonly my $ONE  => $ZERO + 1;

aesthetic preference.  i like that:

  $var = $EMPTY_STRING;

is very readable.  more so for me than:

  $var = '';

i also like:

  Readonly my $BYTES => 1;
  Readonly my $KILOBYTES => 1024 * $BYTES;
  Readonly my $MEGABYTES => 1024 * $KILOBYTES;

[...]

  Readonly my $MAX_CONFIG_FILE_SIZE => 10 * $MEGABYTES;

ymmv.

-- 
Live in a world of your own, but always welcome visitors.


More information about the london.pm mailing list