a number then you either need to say
$a = +(100);
or use +($a) when passing it.
--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.
[EMAIL PROTECTED]
It looks like they already have a name in S04: Closure traits*.
* http://dev.perl.org/perl6/doc/design/syn/S04.html#Closure_traits
--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.
On Thu, Apr 10, 2008 at 2:29 AM, Mark J. Reed [EMAIL PROTECTED] wrote:
On Thu, Apr 10, 2008 at 2:26 AM, Chas. Owens [EMAIL PROTECTED] wrote:
It looks like they already have a name in S04: Closure traits*.
* http://dev.perl.org/perl6/doc/design/syn/S04.html#Closure_traits
I don't
name (that already means something).
snip
The perldocs call them Five specially named code blocks, The Camel
names them individually (e.g. BEGIN block). How about phase blocks?
They control in what phase of compilation/runtime the code runs in.
--
Chas. Owens
wonkden.net
The most important skill
]
--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.
On Dec 21, 2007 4:51 PM, Dave Whipp [EMAIL PROTECTED] wrote:
Larry Wall wrote:
As for the Q base form, it's not really there so much for end-use,
For an operator not intended for end use, it has a remarkable low
Huffman rank...
But since it will be combined with adverbs like
my $str = Q
On Dec 13, 2007 4:37 PM, ispyhumanfly [EMAIL PROTECTED] wrote:
Hello list,
I've created a group on www.hiveminder.org for Perl6 collaborative
task tracking and management. I've done some thinking and I've come up
with a way in which I would like to maintain this group, its organizers
On Dec 13, 2007 6:30 PM, ispyhumanfly [EMAIL PROTECTED] wrote:
snip
This task list is available via an rss feed. I think this will help
solve the problem in the way you described.
snip
What is the URL for this feed?
On Dec 7, 2007 11:50 AM, Larry Wall [EMAIL PROTECTED] wrote:
On Thu, Dec 06, 2007 at 12:12:36PM -0700, Thom Boyer wrote:
Larry Wall wrote:
Good guess, but no. It comes from the fact that Texas always bragged
about how they were the largest state in the union, and had the biggest
On 6/29/07, raiph [EMAIL PROTECTED] wrote:
snip
Finally, but very importantly imo, what if there are 3 or more
alternatives?
snip
Use a hash or array (depending on the selecting data).
system((zip win32 linux other, cls clear nuke)$?OS);
system({win32='cls', linux='clear', other='nuke'}$?OS);
On 6/22/07, Mark Overmeer [EMAIL PROTECTED] wrote:
snip
* Jonathan Lang ([EMAIL PROTECTED]) [070622 10:41]:
snip
Please forgive my ignorance: what does AST stand for?
The Abstract Syntax Tree, the result of the code parser, un-interpreted.
snip
You mean it isn't Andrew S. Tanenbaum? Well,
On 6/22/07, chromatic [EMAIL PROTECTED] wrote:
On Thursday 21 June 2007 15:23:38 Smylers wrote:
Has Larry yet decreed whether Web will be bundled with Perl 6?
I also like to proceed from the assumption that the only core modules should
be those required to install other modules.
-- c
On 6/22/07, jerry gay [EMAIL PROTECTED] wrote:
On 6/22/07, Chas Owens [EMAIL PROTECTED] wrote:
Most of the time the policy is enacted by lower-case-l lazy sysadmins
who can't be bothered to type
perl -MCPAN -e install Foo::Bar
My normal route around them is to install the module
On 6/22/07, chromatic [EMAIL PROTECTED] wrote:
On Friday 22 June 2007 11:07:35 Chas Owens wrote:
Please, god, no. Or at least make two distributions: Bare Perl 6 and
Perl 6. Many companies have a Only Core Perl policy. They refuse
to install CPAN modules because We don't trust them.
I think
On 6/14/07, Damian Conway [EMAIL PROTECTED] wrote:
snip
To get the multi-line quote, you'd need:
say :to(END);
=begin POD
blah blah blah
=end POD
END
Damian
Would this work as well?
say :to(END);
\x{3D}begin POD
blah blah blah
\x{3D}end POD
END
On 6/3/07, Jonathan Lang [EMAIL PROTECTED] wrote:
Chas Owens wrote:
Jonathan Lang wrote:
Is there any reason why we can't simply define '$a x $n' as being
shorthand for 'cat($a xx $n)'? In what way does the former differ
from the latter, other than the use of a Whatever in place of $n
On 6/3/07, Jonathan Lang [EMAIL PROTECTED] wrote:
Chas Owens wrote:
Jonathan Lang wrote:
Chas Owens wrote:
Jonathan Lang wrote:
Is there any reason why we can't simply define '$a x $n' as being
shorthand for 'cat($a xx $n)'? In what way does the former differ
from the latter
On 6/3/07, Jonathan Lang [EMAIL PROTECTED] wrote:
snip
From what you're saying, I get the impression that you think that '-'
x 5 ought to produce a single string of five dashes regardless of
whether the context is item or list. Correct? (Note: I'm not asking
about what the spec says, since
On 6/2/07, Jonathan Lang [EMAIL PROTECTED] wrote:
Is there any reason why we can't simply define '$a x $n' as being
shorthand for 'cat($a xx $n)'? In what way does the former differ
from the latter, other than the use of a Whatever in place of $n?
--
Jonathan Dataweaver Lang
$a x $n is
On 6/1/07, Doug McNutt [EMAIL PROTECTED] wrote:
At 09:15 -0700 6/1/07, Larry Wall wrote:
: To conclude, as hash definitely tastes better than a dictionary, we
: should stick to that name. ;)
:
: At least nobody can say that Perl is bad taste!
Then maybe we should rename Array to Skewer or Kabob
On 5/31/07, Darren Duncan [EMAIL PROTECTED] wrote:
Barring some better name, I highly recommend/propose renaming Hash to Dict.
And lets rename Perl to Python. This is just change for the sake of change.
snip
The term Dict (as a short form of dictionary) is well understood by
general people
On 5/29/07, Mark J. Reed [EMAIL PROTECTED] wrote:
My expectation before reading the delta was that negative counts
would do a reversal:
123 x -1 = 321
('a', 'b', 'c') xx -3 = ('c', 'b', 'a', 'c', 'b', 'a', 'c', 'b', 'a');
I don't know why I think that makes sense, but it was honestly my
On 5/29/07, Larry Wall [EMAIL PROTECTED] wrote:
On Tue, May 29, 2007 at 04:05:39PM -0400, Chas Owens wrote:
: On 5/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
: snip
: +If the count is less than 1, returns the null string.
: +The count may not be C* because Perl 6 does not support
On 5/29/07, Larry Wall [EMAIL PROTECTED] wrote:
On Tue, May 29, 2007 at 04:43:20PM -0400, Chas Owens wrote:
: Just an odd corner case, but
:foo x -*
: should return an empty string and
:foo xx -*
: should return an empty list, right?
I'm doubt prefix:-:(Whatever) is defined at all, so
In my mind
perl -le 'print join \n, map { [ . 0 x $_ . ] } -1 .. 1'
and
pugs -e 'say join \n, map { [{ 0 x $_}] }, -1 .. 1'
should both print
[]
[]
[0]
But the Pugs code throws
pugs: List.genericTake: negative argument
Is this Pugs specific behavior or has the the x operator changed with
25 matches
Mail list logo