Re: Naming debate- what's the location for it?

2018-02-08 Thread Aaron Sherman
Just Mu would be an amusing Perlish pun based on Muttsu... Making the interpretation either Perl "six" or Perl "most undefined". I like yary's idea too. Frankly, if Perl had an identity, I would not care about the name. I feel like it lacks that right now. -- Aaron She

Re: Naming debate- what's the location for it?

2018-02-08 Thread Aaron Sherman
cit number. Normally, I'd recommend Latin, but Perl Sex is probably not where anyone wants to go... Roku is Japanese, but also the name of a popular device, and thus confusing... -- Aaron Sherman, M.: P: 617-440-4332 // E: a...@ajs.com Toolsmith, developer, gamer and life-long student. On Thu, F

Re: CALL-ME vs. Callable

2016-11-14 Thread Aaron Sherman
with a change to the way Callable and calling work. I'm not suggesting that the latter is bad, but it seems to be a patch around a problem in the former... Aaron Sherman, M.: P: 617-440-4332 Google Talk, Email and Google Plus: a...@ajs.com Toolsmith, developer, gamer and life-long student. On Mon, Nov 14

Re: CALL-ME vs. Callable

2016-11-14 Thread Aaron Sherman
So, you said that the problem arises because NQP does something non-obvious that results in this error. Can you be clear on what that non-obvious behavior is? It sounds to me like you're addressing a symptom of a systemic issue. Aaron Sherman, M.: P: 617-440-4332 Google Talk, Email and Google

Re: CALL-ME vs. Callable

2016-11-14 Thread Aaron Sherman
Fair points, all. I do think, though that if the concern is really with "the 4 cases when nqp hauls a CALL-ME out of its bowels" then that's what should be addressed... Aaron Sherman, M.: P: 617-440-4332 Google Talk, Email and Google Plus: a...@ajs.com Toolsmith, developer, gamer and

Re: Is this a bug?

2016-09-19 Thread Aaron Sherman
Thank you. Silly me, thinking "this is so simple I don't need to run it through the command-line to test it." :-) Anway, yeah, say $_ for reverse lines Aaron Sherman, M.: P: 617-440-4332 Google Talk, Email and Google Plus: a...@ajs.com Toolsmith, developer, gamer and life-lo

Re: Is this a bug?

2016-09-19 Thread Aaron Sherman
t remember that any {} around code creates a Block in Perl 6, and a Block is a first-class object. If you ask say to print a Block, it will quite happily try to do that. Aaron Sherman, M.: P: 617-440-4332 Google Talk, Email and Google Plus: a...@ajs.com Toolsmith, developer, gamer and life-lo

Re: This seems to be wrong

2016-09-19 Thread Aaron Sherman
"for @inputs.map( .prefix:<+> ) {...}" That's spelled: "for @inputs>>.Int -> $i { ... }" You can also use map, but it's slightly clunkier: "for @inputs.map: .Int -> $i { ... }" Aaron Sherman, M.: P: 617-440-4332 Google Talk, Email and Googl

Re: Justification for the "reversed" instruction format

2016-09-08 Thread Aaron Sherman
y(2); $ perl6 foo.p6 (2 4 6 8 10) (k m o q) Cannot resolve caller counter(Int, Rat, Int); none of these signatures match: (Int $start, Int $end, :$by = 1) (Str $start, Str $end, :$by = 1) in block at foo.p6 line 3 Aaron Sherman, M.: P: 617-440-4332 Google Talk, Email and Google P

The use of $!attr vs self.attr in core libraries

2016-09-08 Thread Aaron Sherman
ge: https://github.com/rakudo/rakudo/blob/32902f25ca753860067a34eb9741aa5524dbe64e/src/core/Range.pm#L96 -- Aaron Sherman, M.: P: 617-440-4332 Google Talk, Email and Google Plus: a...@ajs.com Toolsmith, developer, gamer and life-long student.

Re: Justification for the "reversed" instruction format

2016-09-08 Thread Aaron Sherman
I don't know Haskell, but isn't flip just: sub flip() { -> $b, $a, |c { f($a, $b, |c) } } And then: perl6 -e 'sub flip() { -> $a, $b, |c { f($b, $a, |c) } }; my = flip yas(1,2,3)' 213 Aaron Sherman, M.: P: 617-440-4332 Google Talk, Email and Google Plus: a...@ajs.com Toolsmith, dev

Re: Justification for the "reversed" instruction format

2016-09-06 Thread Aaron Sherman
Oh, and note that you can pass R'd reductions as if they were normal prefix ops: $ perl6 -e 'sub dueet(, *@list) { op @list }; say dueet :<[R-]>, 1..100' -4850 On Tue, Sep 6, 2016 at 12:51 PM, Aaron Sherman <aaronjsher...@gmail.com> wrote: > > > $ perl6 -e 'my @

Re: Justification for the "reversed" instruction format

2016-09-06 Thread Aaron Sherman
$ perl6 -e 'my @numbers = 1..100; say [-] @numbers; say [R-] @numbers' -5048 -4850 In general, it's kind of pointless with bare infix ops, as you can just reverse the arguments, but when reducing or the like, it becomes much more valuable. On Tue, Sep 6, 2016 at 12:43 PM, Parrot Raiser

Update for S32::Str and musings on sprintf

2012-09-27 Thread Aaron Sherman
://pubs.opengroup.org/onlinepubs/9699919799/functions/sprintf.html -- Aaron Sherman a...@ajs.com P: 617-440-4332 Google Talk: a...@ajs.com / aaronjsher...@gmail.com Toolsmith and developer. Player of games. Buyer of gadgets.

lol context and X

2011-03-31 Thread Aaron Sherman
explain why these all behave so differently, and why we chose to flatten so aggressively in so many cases, but not in some others? -- Aaron Sherman a...@ajs.com P: 617-440-4332 Google Talk: a...@ajs.com / aaronjsher...@gmail.com Toolsmith and developer. Player of games. Buyer of gadgets.

Return value of try

2010-11-15 Thread Aaron Sherman
I was listening to the recent IO conversation on p6c, and decided to look at IO.pm in rakudo. I immediately saw a bit of code that worried me: try { ?$!PIO.close() } $! ?? fail($!) !! Bool::True Why is that so cumbersome? That seems like one of the most

Re: threads?

2010-10-22 Thread Aaron Sherman
On Thu, Oct 21, 2010 at 6:04 PM, Darren Duncan dar...@darrenduncan.netwrote: Aaron Sherman wrote: Things that typically precipitate threading in an application: - Blocking IO - Event management (often as a crutch to avoid asynchronous code) - Legitimately parallelizable, intense

Re: threads?

2010-10-21 Thread Aaron Sherman
I've done quite a lot of concurrent programming over the past 23ish years, from the implementation of a parallelized version of CLIPS back in the late 80s to many C, Perl, and Python projects involving everything from shared memory to process pooling to every permutation of hard and soft thread

Re: threads?

2010-10-21 Thread Aaron Sherman
On Tue, Oct 12, 2010 at 10:22 AM, Damian Conway dam...@conway.org wrote: Perhaps we need to think more Perlishly and reframe the entire question. Not: What threading model do we need?, but: What kinds of non-sequential programming tasks do we want to make easy...and how would we like to be

Re: Buf.pm: FIFO and grammar

2010-08-13 Thread Aaron Sherman
} my $a = 0; foo($a); say $a; # 0 Kind of interesting that you can't easily emulate Perl 5's parameter passing... -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Buf.pm: FIFO and grammar

2010-08-13 Thread Aaron Sherman
$a' 0 $ perl -le 'sub foo { $_[0] = 1 } my $a = 0; foo($a); print $a' 1 You might well be correct about how it's supposed to work, but that's certainly not the current behavior. On Fri, 2010-08-13 at 12:06 -0400, Aaron Sherman wrote: On Fri, Aug 13, 2010 at 11:27 AM, Jonathan Worthington jonat

Re: Buf.pm: FIFO and grammar

2010-08-12 Thread Aaron Sherman
text or data, and that's a gigantic undertaking. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: How are unrecognized options to built-in pod block types treated?

2010-08-05 Thread Aaron Sherman
an incompatible change to Perl's documentation system, and we'll have a very good reason to do so, I'd imagine. The right thing to do will be to make sure that we roll it out carefully and with all due warning. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: pattern alternation (was Re: How are ...)

2010-08-05 Thread Aaron Sherman
^ and $ in TOP ;-) -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: pattern alternation (was Re: How are ...)

2010-08-05 Thread Aaron Sherman
On Thu, Aug 5, 2010 at 11:09 AM, Patrick R. Michaud pmich...@pobox.comwrote: On Thu, Aug 05, 2010 at 10:27:50AM -0400, Aaron Sherman wrote: On Thu, Aug 5, 2010 at 7:55 AM, Carl Mäsak cma...@gmail.com wrote: I see this particular thinko a lot, though. Maybe some Perl 6 lint tool

Re: pattern alternation (was Re: How are ...)

2010-08-05 Thread Aaron Sherman
On Thu, Aug 5, 2010 at 2:43 PM, Tyler Curtis ekir...@gmail.com wrote: On Thu, Aug 5, 2010 at 12:28 PM, Aaron Sherman a...@ajs.com wrote: While that's a nifty special case (I'm sure it will surprise me someday, and I'll spend a half hour debugging before I remember this mail), it doesn't

Re: Smart match isn't on Bool

2010-08-04 Thread Aaron Sherman
obvious uses deprecated. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: How are unrecognized options to built-in pod block types treated?

2010-08-04 Thread Aaron Sherman
be added to :reserved and migrated over time to stand-alone options after being listed in the release notes for a couple of cycles. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Smart match isn't on Bool

2010-08-02 Thread Aaron Sherman
going on. I feel for him/her. The only advantage he/she will have is that this is likely to be so common an error that they'll quickly learn to look for it first when smart-matching is involved :-/ -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Natural Language and Perl 6

2010-08-02 Thread Aaron Sherman
On Sun, Aug 1, 2010 at 6:46 AM, Timothy S. Nelson wayl...@wayland.id.auwrote: Hi. I'm wondering if any thought has been given to natural language processing with Perl 6 grammars. Yes. ;) -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Smart match isn't on Bool

2010-07-31 Thread Aaron Sherman
On Sat, Jul 31, 2010 at 12:56 PM, David Green david.gr...@telus.net wrote: On 2010-07-30, at 4:57 pm, Aaron Sherman wrote: given False { when True { say True } when False { Say False } default { say Dairy } } I don't think it's unreasonable to expect the output to be False. However

Re: Array membership test?

2010-07-30 Thread Aaron Sherman
with no newline So, the right way to search for value types in a list... is highly questionable right now. ;-) -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Smart match isn't on Bool

2010-07-30 Thread Aaron Sherman
on ===. I was about to say that === should check to see if X.WHICH eqv X, but I think that would slow things down too much. Setting a max recursion depth, on the other hand would be simple and fast. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Suggested magic for a .. b

2010-07-30 Thread Aaron Sherman
stuff. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Suggested magic for a .. b

2010-07-29 Thread Aaron Sherman
of these questions for the default range operator on unadorned, context-less strings. For that case, you must do something that makes sense for all Unicode codepoints in nearly all contexts. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Suggested magic for a .. b

2010-07-28 Thread Aaron Sherman
its way in the door? Because it resembles the math op? These don't seem like good reasons. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Suggested magic for a .. b

2010-07-28 Thread Aaron Sherman
On Wed, Jul 28, 2010 at 6:24 PM, Dave Whipp d...@dave.whipp.name wrote: Aaron Sherman wrote: On Wed, Jul 28, 2010 at 11:34 AM, Dave Whipp d...@dave.whipp.name wrote: To squint at this slightly, in the context that we already have 0...1e10 as a sequence generator, perhaps the semantics

Re: Suggested magic for a .. b

2010-07-28 Thread Aaron Sherman
On Wed, Jul 28, 2010 at 6:24 PM, Dave Whipp d...@dave.whipp.name wrote: Aaron Sherman wrote: On Wed, Jul 28, 2010 at 11:34 AM, Dave Whipp d...@dave.whipp.name wrote: To squint at this slightly, in the context that we already have 0...1e10 as a sequence generator, perhaps the semantics

Re: Suggested magic for a .. b

2010-07-27 Thread Aaron Sherman
Sorry I haven't responded for so long... much going on in my world. On Mon, Jul 26, 2010 at 11:35 AM, Nicholas Clark n...@ccl4.org wrote: On Tue, Jul 20, 2010 at 07:31:14PM -0400, Aaron Sherman wrote: 2) We deny that a range whose LHS is larger than its RHS makes sense, but we also don't

Re: series operator issues

2010-07-22 Thread Aaron Sherman
tool: 0, { state $i = 1; $^a + $i++ } ... * That should work, no? Granted, state doesn't seem to work in Rakudo, unless I'm mis-understanding how to use it, but that's the idea. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: series operator issues

2010-07-22 Thread Aaron Sherman
) } ... * { $^index ** 2 } ... * 1, { $^a * $^index } ... * Not changing the syntax of closures seems like a reasonable goal at this late stage. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: series operator issues

2010-07-22 Thread Aaron Sherman
they? I don't think named-only parameters have an ordering. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Suggested magic for a .. b

2010-07-21 Thread Aaron Sherman
On Wed, Jul 21, 2010 at 1:28 AM, Aaron Sherman a...@ajs.com wrote: For reference, this is the relevant section of the spec: Character positions are incremented within their natural range for any Unicode range that is deemed to represent the digits 0..9 or that is deemed to be a complete

multi-character ranges

2010-07-21 Thread Aaron Sherman
[changing the subject because it's now clear we have two different discussions on our hands. I think we're at or closing in on a consensus for a .. z, and this discussion is aa .. bb] On Wed, Jul 21, 2010 at 1:56 AM, Darren Duncan dar...@darrenduncan.netwrote: Aaron Sherman wrote: 2) The spec

Re: Suggested magic for a .. b

2010-07-20 Thread Aaron Sherman
undefined codepoint). -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Suggested magic for a .. b

2010-07-20 Thread Aaron Sherman
OK, there's a lot here and my head is swimming, so let me re-consolidate and re-state (BTW: thanks Jon, you've really helped me understand, here). 1) The spec is somewhat vague, but the proposal that I made for single characters is not an unreasonable interpretation of what's there. Thus, we

Re: Suggested magic for a .. b

2010-07-17 Thread Aaron Sherman
, because the rules for any other sort of string that might make sense to a human are absurdly complex. As such, I think it suffices to say that, for the most part, .. makes sense for single-character strings, and to expand from there, rather than trying to introduce anything more complex. -- Aaron

Suggested magic for a .. b

2010-07-16 Thread Aaron Sherman
determine how many codepoints lie in the full range. This implies that length 1 strings in ... operations which imply a counting sequence, are not strictly evaluated lazily, though some laziness may still be employed. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Suggested magic for a .. b

2010-07-16 Thread Aaron Sherman
iterations. Also true, and I think that's a correct thing. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: r31651 -[S13] try to make multisig semantics slightly more generic so sigs can do better pattern matching

2010-07-14 Thread Aaron Sherman
in +multiple signatures with non-identical nominal types, the actual +lexical variable will declared will *be* declared? -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: S06 -- grammatical categories and macros

2010-07-01 Thread Aaron Sherman
On Wed, Jun 30, 2010 at 7:33 PM, Jonathan Worthington jonat...@jnthn.netwrote: Aaron Sherman wrote: See below for the S06 section I'm referring to. I'm wondering how we should be reading the description of user-defined operators. For example, sub infix:(c) doesn't describe the precedence

Re: Filesystems and files [Was: Re: The obligation of free stuff: Google Storage]

2010-06-30 Thread Aaron Sherman
be stored in there, that's probably the best way to go, unless someone proposes another way between now and then. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

S06 -- grammatical categories and macros

2010-06-30 Thread Aaron Sherman
into the * namespace. Always use exportation to make non-standard syntax available to other scopes. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Perl 6 in non-English languages

2010-06-23 Thread Aaron Sherman
to ISO 8-1:2009). Sure, Perl 6 allows you to localize names. In theory, but I'd be very concerned about anyone who actually wanted to promote the use of such a thing. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Perl 6 in non-English languages

2010-06-23 Thread Aaron Sherman
I should point out that I've had a great deal of coffee. The technical details of what I've said are reasonable, but read the rest as off-the-cuff opinion. It's also true that seeing how Perl 6 would look/work when re-cast in the grammatical conventions of another human language would be very

Re: The obligation of free stuff: Google Storage

2010-06-20 Thread Aaron Sherman
. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: r31337 -[S02] allow _ between radix and digits as suggested by ajs++

2010-06-18 Thread Aaron Sherman
-- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: r31337 -[S02] allow _ between radix and digits as suggested by ajs++

2010-06-18 Thread Aaron Sherman
On Fri, Jun 18, 2010 at 10:26 PM, ajs a...@ajs.com wrote: Attached, I've included test results, the tests and the patch (both to the spectest suite and nqp-rx) to support this spec change. No... no I didn't. Here it is, attached as text. -- Aaron Sherman Email or GTalk: a...@ajs.com http

underscore in numbers

2010-06-17 Thread Aaron Sherman
= rx184_cur.decint() -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

The obligation of free stuff: Google Storage

2010-06-09 Thread Aaron Sherman
for things like sftp, Amazon S3, Google Storage and other remote storage possibilities? Is there any extant work out there, or should I just start spit-balling? -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: The obligation of free stuff: Google Storage

2010-06-09 Thread Aaron Sherman
On Wed, Jun 9, 2010 at 10:04 AM, Aaron Sherman a...@ajs.com wrote: Has anyone begun to consider what kind of filesystem interface we want for things like sftp, Amazon S3, Google Storage and other remote storage possibilities? Is there any extant work out there, or should I just start spit

Re: r31050 -[S03] refine hyper dwimminess to be more like APL, with modular semantics

2010-06-02 Thread Aaron Sherman
) »+» 1) ~~ (2,4,4,6) ) I tested these all with Rakudo, and they all currently fail, though I guess that's not shocking. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: r31043 -[S32/Containers] Buf does Stringy, too

2010-06-02 Thread Aaron Sherman
notwithstanding. My knee-jerk response would be that this is fine the way it is now, but perhaps adding your suggestion as an alternative syntax could be considered for 6.0? Then again, no one cares what I say ;-) -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Advocating Perl 6

2010-05-29 Thread Aaron Sherman
brief explanation every day. We'll see how long I can keep it up. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

URI replacement pseudocode

2010-05-17 Thread Aaron Sherman
) -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Perl6 and accents

2010-05-17 Thread Aaron Sherman
the moving target to be too painful. Maybe Perl 6 has slowed down enough that it's more practical now? -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Fwd: URI replacement pseudocode

2010-05-17 Thread Aaron Sherman
On Mon, May 17, 2010 at 3:34 PM, Moritz Lenz mor...@faui2k3.org wrote: Aaron Sherman wrote: I had a hard time even getting basic code working like: token foo { blah } if blah ~~ m/foo/ { say blah! } (See my question to the list, last week) Right. What works today

Re: Fwd: URI replacement pseudocode

2010-05-17 Thread Aaron Sherman
On Mon, May 17, 2010 at 3:34 PM, Moritz Lenz mor...@faui2k3.org wrote: Aaron Sherman wrote: I had a hard time even getting basic code working like: token foo { blah } if blah ~~ m/foo/ { say blah! } (See my question to the list, last week) Right. What works today

Re: Parallelism and Concurrency was Re: Ideas for aObject-Belongs-to-Thread (nntp: message 4 of 20) threading model (nntp: message 20 of 20 -lastone!-)

2010-05-17 Thread Aaron Sherman
there for thought. -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: underscores vs hyphens (was Re: A new era for Temporal)

2010-04-12 Thread Aaron Sherman
be useful in illuminating what I'm describing above: http://www.ajs.com/ajswiki/Sand:_Syntax_and_Structure#Identifiers -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: a more useful srand (was Re: r30369 - docs/Perl6/Spec/S32-setting-library)

2010-04-12 Thread Aaron Sherman
will ultimately pay for it. Some good reading for recent work: http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/ http://eprint.iacr.org/2006/086 http://lcamtuf.coredump.cx/oldtcp/tcpseq.html http://www.avatar.se/python/crng/index.html -- Aaron Sherman Email or GTalk: a...@ajs.com http://www.ajs.com/~ajs

Re: Parsing data

2009-10-08 Thread Aaron Sherman
On Thu, Oct 8, 2009 at 12:57 AM, David Green david.gr...@telus.net wrote: I agree that being able to parse data structure would be *extremely* useful.  (I think I posted a suggestion like that at one time, though I didn't propose any syntax.)  There is already a way to parse data --

Parsing data

2009-10-07 Thread Aaron Sherman
One of the first things that's becoming obvious to me in playing with Rakudo's rules is that parsing strings isn't always what I'm going to want to do. The most common example of wanting to parse data that's not in string form is the YACC scenario where you want to have a function produce a stream

Re: Parsing data

2009-10-07 Thread Aaron Sherman
Sorry, I accidentally took the thread off-list. Re-posting some of my comments below: On Wed, Oct 7, 2009 at 6:50 PM, Moritz Lenz mor...@faui2k3.org wrote: Aaron Sherman wrote: One of the first things that's becoming obvious to me in playing with Rakudo's rules is that parsing strings isn't

Re: [perl #69194] rakudo 2009-08 and when with lists

2009-09-19 Thread Aaron Sherman
On Sat, Sep 19, 2009 at 9:45 PM, David Green david.gr...@telus.net wrote: On 2009-Sep-19, at 5:53 am, Solomon Foster wrote: The one thing that worries me about this is how :by fits into it all. rakudo: given 1.5 { when 1..2 { say 'between one and two' }; say 'not'; }; rakudo:

Re: [perl #69194] rakudo 2009-08 and when with lists

2009-09-18 Thread Aaron Sherman
Redirecting thread to language because I do agree that this is no longer a matter of a bug. On Fri, Sep 18, 2009 at 9:28 AM, Moritz Lenz via RT perl6-bugs-follo...@perl.org wrote: On Thu Sep 17 08:53:59 2009, ajs wrote: This code behaves as expected, matching 2 or 3 in only one out of the

Re: S26 - The Next Generation

2009-09-16 Thread Aaron Sherman
I'm jumping in on an old conversation because I only just had time to catch up last night. I have a few questions that I think are probably still pertinent. On Sun, Aug 16, 2009 at 4:26 PM, Damian Conway dam...@conway.org wrote: Executive summary: * Pod is now just a set of specialized

POD classes -- a suggestion

2009-09-16 Thread Aaron Sherman
I'd really like to be able to assign a class to POD documentation. Here's an example of why: class Widget is Bauble #= A widget is a kind of bauble that can do stuff { has $.things; #= a collection of other stuff #==XXX{ This variable needs to be replaced for political reasons }

Re: Testing Perl 6 analog to Perl 5's tie.

2009-08-04 Thread Aaron Sherman
On Sun, Aug 2, 2009 at 1:10 PM, Moritz Lenz mor...@faui2k3.org wrote: Let's pick up this old mail before it gets completely warnocked ;-) For the record, this discussion only applies to scalar implementation types. For example for Arrays I expect things to work by overriding the method

Re: Huffman's Log: svndate r27485

2009-07-10 Thread Aaron Sherman
On Fri, Jul 10, 2009 at 3:32 PM, Mark J. Reed markjr...@gmail.com wrote: The clash between 'log' for 'logarithm' and 'log' for 'write to log file' is unfortunate, but since you have to define logging parameters somewhere anyway, I'm OK with having to call that sort of log as a method on a

Re: Re-thinking file test operations

2009-07-10 Thread Aaron Sherman
On Thu, Jul 9, 2009 at 6:22 PM, Moritz Lenz mor...@faui2k3.org wrote: $str.File.e # same, different names Brainstorming a bit here Str is a class that describes collections of characters (among some other typographical constructs, yadda, yadda, Unicode, yadda). There is a

Fwd: Re-thinking file test operations

2009-07-10 Thread Aaron Sherman
Sorry, I sent this just to Mark. Wasn't my intention. -- Forwarded message -- From: Aaron Sherman a...@ajs.com Date: Fri, Jul 10, 2009 at 6:58 PM Subject: Re: Re-thinking file test operations To: Mark J. Reed markjr...@gmail.com On Fri, Jul 10, 2009 at 5:31 PM, Mark J. Reed

Re: Runtime role issues

2006-10-12 Thread Aaron Sherman
Ovid wrote: The intermediate class solves the problem but it instantly suggests that we have a new design pattern we have to remember. Basically, if I can't lexically scope the additional behavior a role offers, I potentially need to remove the role or use the intermediate class pattern. my

P5's s[pat][repl] syntax is dead

2006-10-11 Thread Aaron Sherman
@larry[0] wrote: Log: P5's s[pat][repl] syntax is dead, now use s[pat] = repl Wow, I really missed this one! That's a pretty big thing to get my head around. Are embedded closures in the string handled correctly so that: s:g[\W] = qq{\\{$/}}; Will do what I seem to be expecting it

Capturing subexpression numbering example

2006-10-10 Thread Aaron Sherman
The example in S05 under Subpattern numbering isn't quite complex enough to give the reader a full understanding of the ramifications of the re-numbering that occurs with alternations, especially with respect to the combination of capturing and non-capturing subpatterns. I've written a small

Hash composers and code blocks

2006-10-05 Thread Aaron Sherman
S04 now reads: == However, a hash composer may never occur at the end of a line. If the parser sees anything that looks like a hash composer at the end of the line, it fails with closing hash curly may not terminate line or some such. my $hash = { 1 = { 2 = 3, 4 = 5 }, #

Re: import collisions

2006-10-05 Thread Aaron Sherman
Jonathan Lang wrote: What if I import two modules, both of which export a 'foo' method? That's always fine unless they have exactly the same signature. In general, that's not going to happen because the first parameter is created from the invocant. Thus: use HTML4; use

Re: Hash composers and code blocks

2006-10-05 Thread Aaron Sherman
Aaron Sherman wrote: Proposal: A sigil followed by [...] is always a composer for that type. %[...]- Hash. Unicode: ⦃...⦄ @[...]- Array. Unicode: [...] ... I left out ::, which is probably a mistake. Part of the elegance of this, IMHO, is that it behaves the same for all

Re: Hash composers and code blocks

2006-10-05 Thread Aaron Sherman
Mark J. Reed wrote: On 10/5/06, Aaron Sherman [EMAIL PROTECTED] wrote: Proposal: A sigil followed by [...] is always a composer for that type. %[...] - Hash. Unicode: ⦃...⦄ @[...] - Array. Unicode: [...] ? - Seq. Unicode: ⎣...⎤ [...] - Code. Unicode

Updated: Re: Hash composers and code blocks

2006-10-05 Thread Aaron Sherman
Aaron Sherman wrote: (updated based on followup conversations) Proposal: A sigil followed by [...] is always a composer for that type. %[...]- Hash. @[...]- Array. [...]- Code. |[...]- Capture. Identical to \(...). $[...]- Scalar. Like item

Exceptions on hypers

2006-10-04 Thread Aaron Sherman
Damian Conway wrote: @bar».foo if $baz; That brought to mind the question that I've had for some time: how are exceptions going to work on hyper-operators? Will they kill the hyperoperation in-progress? e.g. what will $i be: my $i = 0; class A { method inci() { die if

Re: Exceptions on hypers

2006-10-04 Thread Aaron Sherman
Aaron Sherman wrote: Damian Conway wrote: @bar».foo if $baz; That brought to mind the question that I've had for some time: how are exceptions going to work on hyper-operators? Will they kill the hyperoperation in-progress? e.g. what will $i be: Corrected example follows (there were

Mailing list archive and index

2006-10-04 Thread Aaron Sherman
I'm noodling around with the idea of creating an archive and index of all of the messages to the mailing list over the years for purposes of quickly finding all of the messages that have definitive information on a given topic. Simply searching on Google or through my mail spool just doesn't

Re: Don't tell me what I can't do!

2006-10-04 Thread Aaron Sherman
Trey Harris wrote: I read it as yes, you *can* put strictures on the using code into a library, though I wouldn't do it and would say that any module that does so shouldn't be released on CPAN for general use. ... Hey, I have an idea. Let's write a module that enforces that! Seriously, I

Re: Don't tell me what I can't do!

2006-10-03 Thread Aaron Sherman
chromatic wrote: On Monday 02 October 2006 12:32, Jonathan Lang wrote: Before we start talking about how such a thing might be implemented, I'd like to see a solid argument in favor of implementing it at all. What benefit can be derived by letting a module specify additional strictures for its

Re: Nested statement modifiers.

2006-10-03 Thread Aaron Sherman
Trey Harris wrote: In a message dated Fri, 1 Sep 2006, jerry gay writes: On 9/1/06, Trey Harris [EMAIL PROTECTED] wrote: In a message dated Fri, 1 Sep 2006, Paul Seamons writes: I'm not sure if I have seen this requested or discussed. This was definitively rejected by Larry in 2002:

Re: Nested statement modifiers.

2006-10-03 Thread Aaron Sherman
Paul Seamons wrote: Of course, that wasn't exactly what you were asking, but it does present a practical solution when you want to: {say $_ for =}.() if $do_read_input; Which I just verified works fine under current pugs. Thank you. Hadn't thought of that. I think that is workable.

Re: Nested statement modifiers.

2006-10-03 Thread Aaron Sherman
Paul Seamons wrote: It relates to some old problems in the early part of the RFC/Apocalypse process, and the fact that: say $_ for 1..10 for 1..10 Was ambiguous. The bottom line was that you needed to define your parameter name for that to work, and defining a parameter name on a

Re: Don't tell me what I can't do!

2006-10-02 Thread Aaron Sherman
Jonathan Lang wrote: I'm not used to programming styles where a programmer intentionally and explicitly forbids the use of otherwise perfectly legal code. Is there really a market for this sort of thing? use strict;

Abstract roles, classes and objects

2006-10-01 Thread Aaron Sherman
Trey Harris wrote: In a message dated Fri, 29 Sep 2006, Aaron Sherman writes: That said, this is a different point, above and I think it's an easy one to take on. role A { method x() {...} } class B { does A; } does generate an error per If a role merely declares methods without defining

  1   2   3   4   5   6   >