--- Eric Wilhelm [EMAIL PROTECTED] wrote:
http://search.cpan.org/~ewilhelm/lambda-v0.0.1/lib/lambda.pm
Combined with that vim shortcut, this is just too cool :)
I'd probably have put it in the Acme:: namespace, though.
Cheers,
Ovid
--
Buy the book -
Sébastien Aperghis-Tramoni [EMAIL PROTECTED] writes:
unless I read it wrong, it doesn't provide the feature relative.pm
was written for in the first place, that is loading modules using
names relative to the current one.
If I understand correctly, that would be
use import __PACKAGE__;
--
# from Ovid
# on Thursday 11 October 2007 00:54:
I'd probably have put it in the Acme:: namespace, though.
Why? AFAICT, the Acme stuff isn't typically intended for production
use.
I plan to use it early and often.
--Eric
--
Because understanding simplicity is complicated.
--Eric Raymond
* Sébastien Aperghis-Tramoni [EMAIL PROTECTED] [2007-10-11 12:10]:
But this will load *all* the modules below the current one,
which is not the same thing as loading a set of selected
modules. Imagine doing this with Plagger ;)
Imagine trying to load all of Plagger’s modules by hand. ;--)
* Andy Armstrong [EMAIL PROTECTED] [2007-10-10 22:45]:
Nice email address. :-P
This evening I started playing with String::Smart (the name is
as provisional as everything else).
Something with “language”, “type”, “quoting” or “escaping” would
be more appropriate I think.
In general a
* bmillares [EMAIL PROTECTED] [2007-10-10 20:30]:
I was wondering if there is any interest out there for such a
animal.
I am not personally interested. Currently, if I use any OO module
at all, it’s Class::InsideOut. And I can’t *wait* for Perl 5.10
to bring along Hash::Util::FieldHash.
If I
On 11 Oct 2007, at 11:46, A. Pagaltzis wrote:
* Andy Armstrong [EMAIL PROTECTED] [2007-10-10 22:45]:
Nice email address. :-P
It had to be done :)
This evening I started playing with String::Smart (the name is
as provisional as everything else).
Something with “language”, “type”, “quoting”
Here's something I've been mulling for probably about eight years
without doing anything about it.
Particularly in web applications - but in other areas too - people
regularly make a complete mess of escaping / unescaping strings. At
different times a string may need to be
* unescaped
A. Pagaltzis wrote:
* Sébastien Aperghis-Tramoni [EMAIL PROTECTED] [2007-10-11 12:10]:
But this will load *all* the modules below the current one,
which is not the same thing as loading a set of selected
modules. Imagine doing this with Plagger ;)
Imagine trying to load all of Plagger's
--- Ovid [EMAIL PROTECTED] wrote:
Well, if you want to use it in your own code and your work's code,
that's fine (because I'm sure you find typing CONTROL-SHIFT-EL so
much
easier than sub {} :) but if it shows up in your CPAN modules, you
might get a few complaints since this sugar, while a
Ovid wrote:
--- Ovid [EMAIL PROTECTED] wrote:
Well, if you want to use it in your own code and your work's code,
that's fine (because I'm sure you find typing CONTROL-SHIFT-EL so
much
easier than sub {} :) but if it shows up in your CPAN modules, you
might get a few complaints since this
Eric Wilhelm [EMAIL PROTECTED] writes:
Cute, but doesn't it break programs that already use non-ascii (e.g.,
Latin1)?
How?
Because it's no different from the utf8 pragma:
$ cat t.pl
my $x = ë;
$ perl -w t.pl
$ perl -Mutf8 -w t.pl
Malformed UTF-8 character (unexpected continuation
# from Ovid
# on Thursday 11 October 2007 02:08:
but if it shows up in your CPAN modules, you
might get a few complaints since this sugar,
Oh well ;-) It's not an API element, just an internal dependency. It
works with perl 5.6.2 and 5.8.8. Would anyone even notice?
If you're editing the
# from Johan Vromans
# on Thursday 11 October 2007 09:41:
doesn't it break programs that already use non-ascii (e.g.,Latin1)?
How?
Because it's no different from the utf8 pragma:
$ cat t.pl
my $x = ë;
$ perl -w t.pl
$ perl -Mutf8 -w t.pl
Malformed UTF-8 character (unexpected
On 11 Oct 2007, at 18:23, Bill Moseley wrote:
In general, I prefer to run make and make test as a normal user and
then sudo make install, but sudo cpan sure is easy. But, that's
hardly a complete test of code.
Grab the latest CPAN, set these two options:
make_install_make_command [sudo
On Thu, Oct 11, 2007 at 06:31:28PM +0100, Andy Armstrong wrote:
} On 11 Oct 2007, at 18:23, Bill Moseley wrote:
} In general, I prefer to run make and make test as a normal user and
} then sudo make install, but sudo cpan sure is easy. But, that's
} hardly a complete test of code.
}
} Grab the
# from David Golden
# on Thursday 11 October 2007 11:25:
Uh, what about a vim shortcut that just does sub {. E.g.:
And why do we have an 'eq' operator instead of 'equals' ?
IMO, shortcuts for typing long things will lead us to Eclipse.
--Eric
--
...our schools have been scientifically
On 10/11/07, Ovid [EMAIL PROTECTED] wrote:
Combined with that vim shortcut, this is just too cool :)
Uh, what about a vim shortcut that just does sub {. E.g.:
imap ,{ sub {Space
Or even:
imap ,{ sub {SpaceSpace}LeftLeft
-- David
--- Eric Wilhelm [EMAIL PROTECTED] wrote:
And why do we have an 'eq' operator instead of 'equals' ?
IMO, shortcuts for typing long things will lead us to Eclipse.
lambda - a shortcut for sub {...}
my $code = #955; {...}; # instead of sub {...}
;)
Cheers,
Ovid
--
Buy the book -
* Eric Wilhelm [EMAIL PROTECTED] [2007-10-11 01:05]:
http://search.cpan.org/~ewilhelm/lambda-v0.0.1/lib/lambda.pm
If I saw this in production code under my responsibility, I’d
submit it to DailyWTF. However, I have nothing against its use
in code I’ll never see. Carry on.
This opinion brought
20 matches
Mail list logo