Re: r29129 - docs/Perl6/Spec

2009-11-20 Thread Thom Boyer
pugs-comm...@feather.perl6.nl wrote: Author: lwall Date: 2009-11-19 05:34:29 +0100 (Thu, 19 Nov 2009) New Revision: 29129 Modified: docs/Perl6/Spec/S04-control.pod Log: [S04] as several folks have suggested, rename blorst to blast I'm curious about this change. I quickly figured out that

Re: r29129 - docs/Perl6/Spec

2009-11-19 Thread Thom Boyer
I'm curious about the change from blorst to blast. I quickly figured out that blorst was derived from BLock OR STatement (as S04 used to say: In fact, most of these phasers will take either a block or a statement (known as a Iblorst in the vernacular)). The best that I can figure for blast is

Re: arrayref/hashref in spectest suite

2008-08-21 Thread Thom Boyer
Patrick R. Michaud wrote: my $foo = [ 42 ]; my $bar = { a = 23 }; $foo[1] = $bar; TSa (Thomas Sandlaß) wrote: I would also opt for copy semantics whenever = is used for assignment. But C$foo[1] = $bar *does* use copy semantics. The thing on the right is a reference to a hash, and

Re: static types, checking, conversions

2008-04-15 Thread Thom Boyer
Mark J. Reed wrote: It would behoove @Larry to examine the optional type constraints system proposed for Javascript:TNG (see link from firefox.com developers page). I therefore assume that they have done so, but others would benefit by doing likewise. :) Could you be a little more specific

Protected data member access considered harmful

2008-04-07 Thread Thom Boyer
Larry Wall wrote: How private is private? I wonder if what you've called private things are really more like protected in C++ (accessible by the derived class) and that 'my' attributes are really private, as are submethods. It's all confused. Who is allowed to access what? No, private

Re: Musings on operator overloading

2008-03-27 Thread Thom Boyer
Thom Boyer wrote: Now, I think that $x.foo is a method call, even if there's a postfix:foo declaration in scope. And that's a problem, because, no matter what precedence postfix:foo was given, 1,2,3.foo is still going to mean 1, 2, (3.foo) instead of the desired

Re: Musings on operator overloading

2008-03-27 Thread Thom Boyer
Thom Boyer wrote: And does dot always do that? If it does, then something odd happens. Consider infix:* and postfix:!, where infix:* binds tighter than postfix:+, and both bind more loosely than dot. Then I meant ... tighter than postfix:!, ... 1 * 2! # means (1 * 2)! 1 * 2

Re: Musings on operator overloading

2008-03-27 Thread Thom Boyer
Jon Lang wrote: Thom Boyer wrote: That seems better to me than saying that there's no tab character in say blah $x\t blah Whoever said that? Oops. I thought Larry did. But he didn't; I misread it. Whew. Somehow I managed to read Larry's words and get exactly the *opposite* meaning

Re: Musings on operator overloading

2008-03-27 Thread Thom Boyer
Larry Wall wrote: The .++ form is still not a method (single) dispatch, just an alternate form of the postfix, which is a multi dispatch. But the postfix is a unary operator, right? So that'd be multi dispatch on one argument. How does single dispatch differ from multi dispatch on a

Re: Musings on operator overloading

2008-03-26 Thread Thom Boyer
Larry Wall wrote: On Wed, Mar 26, 2008 at 12:56:08PM -0600, Thom Boyer wrote: Larry Wall wrote: ... In the limit, suppose some defines a postfix say looser than comma: (1,2,3)say 1,2,3say 1,2,3.say I must be missing something. Wouldn't it be easier to write 1,2,3 say since

Escaping { $ @ % in strings

2008-02-15 Thread Thom Boyer
S02 provides this example for treating curlies literally in a quoted string: qq:!c Here are { $two uninterpolated } curlies; But can I escape them with a backslash? I was surprised that I couldn't find anything in S02 which said either yes or no. Perhaps this falls under the heading of

Re: Definition of Order in S29

2008-01-24 Thread Thom Boyer
Joe Gottman wrote: In the definition of cmp, S29 says the function returns |Order::Increase|, |Order::Decrease|, or |Order::Same| (which numify to -1, 0, +1). Shouldn't the enumerations and their numerical values be listed in the same order? Joe Gottman The enumerations and the numerical

Re: What is the origin of the nickname, Texas quotes?

2007-12-08 Thread Thom Boyer
Chas. Owens wrote: Like a true Texan* (grin), he skewed the numbers to make Texas look bigger than it is. It is between 2.4** and 2.5*** when you include ... * I am resident of Virgina, so I have no axe to grind; I am just looking for a definitive answer. ** random sites on the Internet ***

Re: What is the origin of the nickname, Texas quotes?

2007-12-06 Thread Thom Boyer
Larry Wall wrote: On Thu, Dec 06, 2007 at 09:36:36AM -0700, Thom Boyer wrote: From S02: The double angles may be written either with French quotes, «$foo @bar[]»||, or with Texas quotes, $foo @bar

Re: [svn:perl6-synopsis] r14421 - doc/trunk/design/syn

2007-06-14 Thread Thom Boyer
Jonathan Lang wrote: 2. Getting block comments to hide POD blocks wouldn't require the POD parser to have a full implementation of a Perl parser. It would require the POD parser to have a _limited_ implementation of a Perl parser, one that's capable of identifying block comments. And IIRC,

Re: POD - Code entanglement

2007-06-14 Thread Thom Boyer
Thomas Wittek wrote: I mean POD uses constructs like headlines, lists, blocks, italic etc. which all describe _how it looks like_ and not _what it is_. I think Damian would take exception to that statement. He worked quite hard to make sure that POD describes _meaning_ rather than

Re: Synopsis 26

2007-03-18 Thread Thom Boyer
I never could find the Pod-to-XHTML'd version of S26 -- the document attached to that email was S26.pod6, not S26.xhtml. I don't want to bug Damian, because obviously he has enough of life happening, as it were. But is the XHTML'd version of S26 available anywhere? I haven't been able to find

S03 regexp nit

2007-03-08 Thread Thom Boyer
[EMAIL PROTECTED] wrote: Modified: doc/trunk/design/syn/S03.pod == ... +Alternately, you can increment a submatch: + +$filename ~~ s[^.* (\w+) \.\w+$] = $().succ; + Don't you want the leading .* to be

Re: Dumb doc question...

2006-08-17 Thread Thom Boyer
On 8/16/06, Agent Zhang [EMAIL PROTECTED] wrote: On 8/17/06, Mark J. Reed [EMAIL PROTECTED] wrote: Where can I find a pod2html that groks the p6 version of POD? I want to format my fresh-from-svn copies of the doc... ... And there're also an online HTML version of the Perl 6 Spec:

Re: new sigil

2005-10-21 Thread Thom Boyer
On 10/20/05, Juerd [EMAIL PROTECTED] wrote: Larry Wall skribis 2005-10-20 7:56 (-0700): the new sigil is the cent sign, so ::T is now written ¢T instead. 1. What does it look like? I've never used a cent sign, and have seen several. It looks like a lowercase c with a vertical line through

Re: A proposal on if and else

2003-01-22 Thread Thom Boyer
Smylers wrote: Thom Boyer wrote: The primary advantage, to my mind, in using Celsif, is that it eliminates the dangling-else ambiguity -- so splitting it in half removes almost ALL the value of even having an Celsif keyword. Surely it's the compulsory braces, even with a single statement

Perltalk

2003-01-21 Thread Thom Boyer
Smylers [mailto:[EMAIL PROTECTED]] wrote: And an alternative spelling for the assignment operator[*0] doesn't strike me as something Perl is really missing: $msg ~ 'Hello there'; $msg = 'Hello there'; I still remember the first time I saw a computer program, before I had learned

RE: A proposal on if and else

2003-01-21 Thread Thom Boyer
Rafael Garcia-Suarez [mailto:[EMAIL PROTECTED]] wrote: The tokeniser could send two tokens else and if whenever it recognizes the keyword elsif -- so this isn't a problem. The primary advantage, to my mind, in using Celsif, is that it eliminates the dangling-else ambiguity -- so splitting it in

RE: L2R/R2L syntax (was Re: Everything is an object.)

2003-01-10 Thread Thom Boyer
Paul Johnson [EMAIL PROTECTED] wrote: When I later saw it using mutt in an xterm, the tilde was at the top of the character, where I was more used to seeing it and it didn't look like an arrow any more, nor did it look very good to me. Well, at least now I understand why some people didn't see

RE: L2R/R2L syntax (was Re: Everything is an object.)

2003-01-10 Thread Thom Boyer
Andrew Rodland [EMAIL PROTECTED] wrote: But you're missing the most important part! I propose that these operators should be named gozinta ( ~) and comezouta ( ~ ), just so that we can say that perl has them. Not to mention that the names work pretty well, for me. Here, here! All in favor,

RE: L2R/R2L syntax (was Re: Everything is an object.)

2003-01-09 Thread Thom Boyer
Mr. Nobody [EMAIL PROTECTED] wrote: --- Damian Conway [EMAIL PROTECTED] wrote: @a ~ grep {...} ~ map {...} ~ sort ~ @out; That's going to be just plain confusing. Arguments to functions are supposed to be on the right. And what's up with using them for assignment? That's making

RE: L2R/R2L syntax (was Re: Everything is an object.)

2003-01-08 Thread Thom Boyer
-Original Message- Rafael Garcia-Suarez [EMAIL PROTECTED] wrote: Actually I don't think you can define a grammar where two operators have the same precedence but different associativity. Be it a pure BNF grammar, or a classical yacc specification (using the %left and %right

RE: perl6-lang Project Management

2003-01-08 Thread Thom Boyer
On Wednesday, November 06, 2002, at 11:54 AM, Michael Lazzaro wrote: On Tuesday, November 5, 2002, at 11:18 PM, Allison Randal wrote: Since you're interested in the management of the Perl 6 project, I'll let you in on some of it. Let's start with a step back into a bit of history: OK,

RE: rule, rx and sub

2002-08-28 Thread Thom Boyer
Damian Conway wrote: Any subroutine/function like Cif that has a signature (parameter list) that ends in a Csub argument can be parsed without the trailing semicolon. So Cif's signature is: sub if (bool $condition, block); So what does the signature for Cwhile look like? I've been

RE: attr sigils?

2002-08-21 Thread Thom Boyer
Trey wrote: I'm wondering about how the sigil-invariance rule interacts with attributes. class Foo { attr $bar; attr bar; method baz { return .bar[$.bar]; # sigils disambiguate } method frob ($self:) { return $self.bar[$self.bar]; #

RE: Regular and Context-Free languages

2002-08-12 Thread Thom Boyer
Steve Find said on August 09, 2002 6:24 PM: Anyone happen to know where pushdown automata fit in this list? Can they handle context-sensitive, just context-free, or some other subset? Mark Reed said on August 09, 2002 7:60 PM: To recognize a context-sensitive language I think you need a Turing

Re: Perl 6 Summary

2002-07-06 Thread Thom Boyer
Peter Scott wrote: At 01:54 PM 7/3/02 -0600, Thom Boyer wrote: I'm personally MUCH more interested in Python's generators http://www.python.org/peps/pep-0255.html. A generator is like an iterator in that it can produce a series of values. But unlike iterators, when you ask a generator

Re: Perl 6 Summary

2002-07-03 Thread Thom Boyer
On Tue, 02 Jul 2002 10:36:45 -0700, Erik Steven Harrisan wrote: ESH my $a = 'foo'; ESH ESH pass_by_name ( sub { print $a} ); ESH ESH sub pass_by_name { ESH my $a = 'bar'; ESH _[0]; ESH } ESH ESH Now, I have trouble keeping Perl 6 and 5 straight, but what I think