Re: cb8c84: [S06] s/tail-recursion/recursion/

2010-10-12 Thread Ben
On Oct 6, 1:28 pm, nore...@github.com wrote: > Branch: refs/heads/master > Home:  http://github.com/perl6/specs > > Commit: cb8c8487fa0ab7156fecffdc8a52bf75d4290c1b >    http://github.com/perl6/specs/commit/cb8c8487fa0ab7156fecffdc8a52bf75... > Author: Carl Masak > Date:   2010-10-06 (Wed, 06 Oct

Re: === and array-refs

2006-08-17 Thread Ben Morrow
my @X := @W;# @X =:= @W my @Y = @W;# @Y === @W but @Y !=:= @W my @Z = @W.clone; # @Z eqv @W but @Z !=== @W ? This seems like a useful set of distinctions to me... Ben -- The cosmos, at best, is like a rubbish heap scattered at random. Heraclitus [EMAIL PROTECTED]

Re: renaming "grep" to "where"

2006-09-20 Thread Ben Morrow
ove *all* Unixisms from Perl (unlink, flock, fork, and all the signal stuff spring to mind; a case could be made for the filetest ops as well). I think that that level of culture- and history-loss would be a real shame; I can see however that others may think it more important to make Perl more plat

Re: Smooth or Chunky?

2007-01-24 Thread Ben Morrow
mpty list. Would using [[]] instead work? This is (at least to me) nicely visually indicative of 'build a list of lists'. It is a little punctuation-heavy, of course; though we could always allow "\x{27E6}\x{27E7}" as an alternative :). Ben -- Alt

Re: [RFC] CPAN6 requirements analysis

2009-05-29 Thread Ben Bennett
en when foo is installed, pull in those packages and any that those depend on, including any non-perl ones that are needed by the perl packages. -ben

Clarification of S04 closure traits

2009-07-25 Thread Ben Morrow
about PRE/POST: can you CATCH failure of your own pre-/post-conditions? - Does it make any difference in any of the above if 'die' is replaced by 'exit'? Ben

Re: Clarification of S04 closure traits

2009-07-28 Thread Ben Morrow
Moritz Lenz wrote: Ben Morrow wrote: - Presumably when an exception is thrown through a block, the LEAVE and POST queues are called (in that order). POST was inspired from the Design By Contract department, and are meant to execute assertions on the result. If you leave a block through an

Re: Embedded comments: two proposed solutions to the comment-whole-lines problem

2009-08-11 Thread Ben Morrow
includes line-starting # comments. However, I would much rather see a general syntax like (# ... ) {# ... } [# ... ] with no whitespace allowed between the opening bracket and the #: this doesn't seem to conflict with anything. Allowing <# ... > in rules would also be nice. Ben

Re: Clarification of S04 closure traits

2009-08-11 Thread Ben Morrow
Sorry for the delay in replying, but I was busy with other things and I wanted to give other people a chance to reply. Since noone has, might it be possible to get the attached patches committed? I'm not familiar with the protocol for such things so, again, I'm sorry if I've got

Re: Embedded comments: two proposed solutions to the comment-whole-lines problem

2009-08-11 Thread Ben Morrow
At 6PM +0200 on 11/08/09 you (Moritz Lenz) wrote: > Ben Morrow wrote: > > > > However, I would much rather see a general syntax like > > > > (# ... ) > > {# ... } > > [# ... ] > > > > with no whitespace allowed between the

Re: unusual invocants

2009-10-22 Thread Ben Morrow
to talk to this object as though it were a T1 now'. Might it be possible to use the type system to make this less painful than it usually is? Ben

threads?

2010-10-12 Thread Ben Goldberg
Has there been any decision yet over what model(s) of threads perl6 will support? Will they be POSIX-like? ithread-like? green-thread-like? It is my hope that more than one model will be supported... something that would allow the most lightweight threads possible to be used where possible, and i

Re: Tweaking junctions

2010-10-25 Thread Ben Goldberg
On Oct 22, 6:41 pm, dam...@conway.org (Damian Conway) wrote: > Dave Whipp wrote: > > When this issue has been raised in the past, the response has been that > > junctions are not really intended to be useful outside of the narrow purpose > > for which they were introduced. > > Hmm. There are in

Lazy Strings and Regexes

2010-10-25 Thread Ben Goldberg
I know that perl6 has / will have lazy strings, since (in S32::Containers) the List role defines a cat method, which returns a Cat object, which "does the Str interface, but generates the string lazily." First, are Cat objects documented anywhere else? Secondly, if a regular expression match is d

Re: Ruby Fibers (was: threads?)

2010-11-07 Thread Ben Goldberg
On Oct 15, 9:57 am, markjr...@gmail.com ("Mark J. Reed") wrote: > On Fri, Oct 15, 2010 at 7:42 AM, Leon Timmermans wrote: > > Continuations and fibers are incredibly useful and should be easy to > > implement on parrot/rakudo but they aren't really concurrency. They're > > a solution to a differen

IO Multiplexing

2010-11-12 Thread Ben Goldberg
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't need to know about the implementation, which happens to be done with fileno/vec/select), or only an event loop. I would recommend tha

Re: IO Multiplexing

2010-11-13 Thread Ben Goldberg
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 >

Re: Fatal/autodie exception hierarchies for Perl 5

2008-06-08 Thread Joshua ben Jore
On Sun, Jun 1, 2008 at 7:31 PM, Paul Fenwick <[EMAIL PROTECTED]> wrote: > Currently, when testing exceptions from autodie, we can use: > >given ($@) { >when (undef) { say "No errors here" } >when ('open') { say "Open died" } >when (':file')

Re: Lessons to learn from ithreads (was: threads?)

2010-12-05 Thread Joshua ben Jore
On Tue, Oct 12, 2010 at 3:46 PM, Tim Bunce wrote: > On Tue, Oct 12, 2010 at 03:42:00PM +0200, Leon Timmermans wrote: >> On Mon, Oct 11, 2010 at 12:32 AM, Ben Goldberg >> wrote: >> > If thread-unsafe subroutines are called, then something like ithreads >> > mig