Darren Duncan wrote:
> Jon Lang wrote:
>>
>> That saves a singlr character over Bag( ... ) and Set( ... ),
>> respectively (or three characters, if you find decent unicode bracket
>> choices). It still wouldn't be a big enough deal to me to bother with
>> it.
>>
>> As well, my first impression upo
I understand everything you've written except the following:
On Nov 13, 2010, at 12:09 PM, Jonathan Worthington wrote:
> Hi,
> ...
>
> my Int @x;
>
> Where we get an array of scalar containers, each of which is only allowed to
> contain an Int (strictly, something that Int.ACCEPTS(...) hands
On Sun, Nov 14, 2010 at 12:12 AM, Jon Lang wrote:
> Carl Mäsak wrote:
> > Jonathan Lang (>):
> >> That saves a singlr character over Bag( ... ) and Set( ... ),
> >> respectively (or three characters, if you find decent unicode bracket
> >> choices). It still wouldn't be a big enough deal to me t
# New Ticket Created by Tadeusz Sośnierz
# Please include the string: [perl #79180]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=79180 >
> perl6 -e 'say "hello".substr(*-1, 1)'
maximum recursion depth exceeded
in 'Cool:
Jon Lang wrote:
That saves a singlr character over Bag( ... ) and Set( ... ),
respectively (or three characters, if you find decent unicode bracket
choices). It still wouldn't be a big enough deal to me to bother with
it.
As well, my first impression upon seeing [! ... !] was to think
"you're n
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #79174]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=79174 >
std: 1, 2, 3, given 4
std a194beb: OUTPUT«ok 00:01 120m»
rakudo: 1, 2, 3, given 4
r
Carl Mäsak wrote:
> Jonathan Lang (>):
>> That saves a singlr character over Bag( ... ) and Set( ... ),
>> respectively (or three characters, if you find decent unicode bracket
>> choices). It still wouldn't be a big enough deal to me to bother with
>> it.
>
> +1. Let's leave it at that.
That sai
Jonathan Lang (>):
> As well, my first impression upon seeing [! ... !] was to think
> "you're negating everything inside?" That said, I could get behind
> doubled brackets:
>
> [[1, 2, 3]] # same as Bag(1, 2, 3)
> {{1, 2, 3}} # same as Set(1, 2, 3)
>
> AFAIK, this would cause no conflicts w
Brandon S Allbery KF8NH wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 11/7/10 23:19 , Jon Lang wrote:
>> 1 -- 2 -- 3
>>
>> Would be a Bag containing three elements: 1, 2, and 3.
>>
>> Personally, I wouldn't put a high priority on this; for my purposes,
>>
>> Bag(1, 2, 3)
>>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 11/7/10 23:19 , Jon Lang wrote:
> 1 -- 2 -- 3
>
> Would be a Bag containing three elements: 1, 2, and 3.
>
> Personally, I wouldn't put a high priority on this; for my purposes,
>
>Bag(1, 2, 3)
>
> works just fine.
Hm. Bag as [! 1, 2, 3
Jonathan Worthington wrote:
> In the latter case, it's fairly clear how these differ:
>
> @x[0] = 1;
> @x[0] := 1;
>
> In the first, we look up the container in slot 0 or the array and assign a 1
> into it. In the second, we bind a 1 directly into the slot. There's no
> container any more (so any f
On 11/13/2010 06:09 PM, Jonathan Worthington wrote:
> With packed arrays, however, I'm less clear what they mean. Since the
> point of a packed array is compact storage, there's no chance to
> actually have containers. Thus does assignment to a slot in a compact
> array ever make sense? There's
On Fri, Nov 12, 2010 at 06:59:59PM -0800, Ben Goldberg wrote:
(snip plea to paint the bikeshed fuchsia)
The design of the I/O system will be chosen by the first person to implement
it. If you want any say in the matter, you need to be that person. Bonus
points if you also port at least one app t
On Sat, Nov 13, 2010 at 06:09:00PM +0100, Jonathan Worthington wrote:
...
> With packed arrays, however, I'm less clear what they mean. Since
> the point of a packed array is compact storage, there's no chance to
> actually have containers. Thus does assignment to a slot in a
> compact array ever m
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #79166]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=79166 >
rakudo: my $a = *; $a = "foo"; say $a
rakudo c548b8: OUTPUT«Whatever()<0x7d4de48>»
*
Jonathan (>):
> Per S09, we can write in Perl 6:
>
> my int @x;
>
> And the idea is that we get a packed array - conceptually, a single lump of
> memory allocated and and storing a bunch of ints contiguously. Contrast this
> to:
>
> my Int @x;
>
> Where we get an array of scalar containers, each of
Hi,
Per S09, we can write in Perl 6:
my int @x;
And the idea is that we get a packed array - conceptually, a single lump
of memory allocated and and storing a bunch of ints contiguously.
Contrast this to:
my Int @x;
Where we get an array of scalar containers, each of which is only
allowed
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #79162]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=79162 >
std: sub foo { ['a', 'b' 'c'] }
std a194beb: OUTPUT«[31m===[0mSORRY![31m===[0mTwo
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #79160]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=79160 >
std: my Str subset Username;
std a194beb: OUTPUT«ok 00:01 118m»
rakudo: my Str subse
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #79158]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=79158 >
rakudo: my $a = Set.new(1, 2, 3, 4); say ($a <<+>>
Set.new(2, 42)).perl;
rakudo 2c66f9
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #79156]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=79156 >
std: sub foo(Str $s where "OH HAI" --> Int) { $s }
std a194beb: OUTPUT«ok 00:01 122m»
# New Ticket Created by min...@gmail.com
# Please include the string: [perl #79130]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=79130 >
Hi there,
I built the latest Rakudo on OS X 10.6.4 Server, and the test
t/spec/S32-
On Nov 12, 2:21 pm, stefa...@cox.net (Stefan O'Rear) wrote:
> On Thu, Nov 11, 2010 at 05:47:46PM -0800, Ben Goldberg wrote:
> > I would like to know, is perl6 going to have something like select
> > (with arguments created by fileno/vec), or something like IO::Select
> > (with which the user doesn'
23 matches
Mail list logo