Re: Unwanted failure and FAILGOAL

2016-05-11 Thread Damian Conway
tement { 'ID' '=' } rule endvalue { 'keyword' '(' ~ ')' 'pairlist' } *rule unexpected { $ = (\N+) { self.panic($/,"Expected statement but found '$'") }}* In other words: after the statements, we're either at the end of the input, or else we found something unexpected, so capture it and then report it. HTH, Damian

Perl 6 mentions on Wikipedia

2016-02-25 Thread Damian Conway
opportunity it represents, to be lost, just because it was initially directed at someone who's currently drowning in other commitments. So I thought I'd mention it here, in the hope that someone else who is looking for a slightly unusual way to contribute to Perl 6 might find the suggestion worth considering. Damian

Re: [perl6/specs] 89cc32: Spec Bag.kxxv

2014-04-22 Thread Damian Conway
ty it can offer. It's important that we market both aspects...and to the right audiences. For example, at OSCON this year I'm concentrating on the simplicity of Perl 6: http://www.oscon.com/oscon2014/public/schedule/detail/33839 Damian

Re: [perl6/specs] 89cc32: Spec Bag.kxxv

2014-04-22 Thread Damian Conway
get it into schools, it would be a huge boost in its exposure and popularity. I'm going to continue to refine my presentation, and offer it at any educational institutions I can convince to host it in the various cities I will be visiting over the next twelve months. We'll see if I get any traction. Damian

Re: [perl6/specs] 89cc32: Spec Bag.kxxv

2014-04-13 Thread Damian Conway
eadable/maintainable as: my $selection = median_value_from( $bag.distribution ); Damian

Re: [perl #121454] Can't inline complex constraints in multisub signatures

2014-03-29 Thread Damian Conway
Moritz wrote: > To spin the tale further, we need to think about what happens if > somebody writes > > multi foo(1|2e0) { ... } > > so now we have Int|Num. We could explore the most-derived common > ancestor (Cool), or look into role space (Real, Numeric come to mind), > or simply error out. Or m

Re: [perl #113930] Lexical subs

2012-07-08 Thread Damian Conway
1: outer x 2: outer x 3: outer x 4: outer x 5: outer x 6: outer x 7: outer x 8: outer x 9: outer x 10: outer x Damian

Re: When do named subs bind to their variables? [perl #113930]

2012-07-08 Thread Damian Conway
$x } foo(); $x := $x_prime; foo(); prints: 1 -1 ...indicating that the $x in foo is bound to the slot, not to any var implementation currently in the slot. The way I would have described it is that binding is by name, not by reference. Damian

Re: When do named subs bind to their variables? (Re: Questionable scope of state variables ([perl #113930] Lexical subs))

2012-07-07 Thread Damian Conway
5] $inner_state = 26 [call 6] $inner_state = 26 under Rakudo BTW, Both the above "yes" answers are consistent with (and can be inferred from) the previous explanation that: my sub foo { whatever() } is just a syntactic convenience for: my &foo := sub { whatever() } HTH, Damian

Re: [perl6/specs] 6ef69b: pod vars are now lowercase as seen in 3e1a9a5a576b...

2012-04-05 Thread Damian Conway
> Thank you damian, i will apply that patch, Much appreciated, Herbert! Damian

Re: [perl6/specs] 6ef69b: pod vars are now lowercase as seen in 3e1a9a5a576b...

2012-04-05 Thread Damian Conway
" named =data. Instead, it accesses the (potential) semantic block named =DATA...which is an entirely different beastie. BTW, S02 still has remnant mentions of $=POD and $=DATA, as well as some other "antiquities" regarding Pod variables. I have attached a proposed docpatch. Damian S02.patch Description: Binary data

Re: Not-so-smart matching (was Re: How to make a new operator.)

2012-03-25 Thread Damian Conway
yary suggested: > In a situation like this, I reach for a thesaurus The standout from that list for me is: 'consonance'. Second favorite is: 'gibe' or 'jibe'. But the underlying operation is .ACCEPTS(), so perhaps the operation should be referred to as "acceptance" or "acceptibility". Damian

Re: How to make a new operator.

2012-03-24 Thread Damian Conway
get an explicit Failure when it does happen, at least people will know when the numerical computations don't work as hoped. Damian

Re: How to make a new operator.

2012-03-24 Thread Damian Conway
the sequence inference with a larger epsilon (or using interval arithmetic). Damian

Re: How to make a new operator.

2012-03-23 Thread Damian Conway
e would be better off limiting the deduction of *both* arithmetic and geometric sequences to starting lists that contain only Ints and Rats. Damian

Re: How to make a new operator.

2012-03-22 Thread Damian Conway
fore compare the results with an suitably larger epsilon. That would not only be computational more justifiable, I suspect it might also produce more "least surprise". ;-) Damian

Re: How to make a new operator.

2012-03-21 Thread Damian Conway
b # ...this sub matches: sub($prev_num) { $prev_num >= $b } * used as an argument to an operator is a shorthand for constructing subroutines, where the * represents the subroutine's argument. Damian

Re: How to make a new operator.

2012-03-21 Thread Damian Conway
> Interesting... but it doesn't seem to work in Rakudo Star (2012.02): > >> @(2,5..10) You need three dots, not two. Damian

Re: How to make a new operator.

2012-03-21 Thread Damian Conway
b Perl 6 already has ^$b e,g, ^100 > 0..99 > a: is the same as a..Inf Perl 6 already has $a..* or $a...* e.g. 3..* > 3,4,5,6, > ::c is the same as 0:Inf:c Perl 6 already has: 0,$c...* e.g. 0,3...* > 0, 3, 6, 9, 12 > : is the same as 0..Inf Perl 6 already has: ^Inf > 0,1,2,3,4,5, Damian

Re: DBC-ish PRE and POST phasers, spec clarifications

2012-03-12 Thread Damian Conway
return value in a signature (which syntax seems to fall out quite >> naturally in any case). > > Or we simply reuse the convention from POST and CATCH that the > interesting value (either exception or return value) is passed in as $_. But that's less explicit and obvious than named return values! :-( Not to mention much less "Nyah, nyah, Haskell...look what we've got!!!". ;-) Damian

Re: DBC-ish PRE and POST phasers, spec clarifications

2012-03-10 Thread Damian Conway
foo(Num $x --> Num $result) will require { $x < 10 } will ensure { $result > $x } { return 2 * $x; } } class B is A { method foo(Num $x --> Num) will require { $x < 100 } { return $x+1; } } And, yes, this does indeed imply a syntax for optionally naming the return value in a signature (which syntax seems to fall out quite naturally in any case). Damian

Re: Setting private attributes during object build

2012-02-02 Thread Damian Conway
ly should have been called INIT(), but that keyword was already taken. > "you must write your own BUILD (as above) in order to present private > attributes as part of your initialization API." > > And that's not so good, because it forces BUILD to be used for > initialization, ...which is precisely what it's supposed to be for. :-) Damian

Re: Setting private attributes during object build

2012-02-02 Thread Damian Conway
larly, one could just create a role (possibly parametric) to handle all the boilerplate and then mix just it into any class that requires it. Damian

Re: Setting private attributes during object build

2012-02-01 Thread Damian Conway
; then we've failed to make Perl 6 even as usable as C++, which is a tragedy. I sounds like I simply misunderstood yary's problem, but I'd be very glad to be reassured that's the case. :-) Damian

Re: Setting private attributes during object build

2012-02-01 Thread Damian Conway
e current semantics of object initialization. Damian

Re: [perl6/specs] a7cfe0: [S32] backtraces overhaul

2011-08-23 Thread Damian Conway
arts of the spec use underscores, newer parts use hyphens". And I'd like there to be a more consistent approach than that (though I don't really care what it actually is). Damian

Re: [perl6/specs] a7cfe0: [S32] backtraces overhaul

2011-08-23 Thread Damian Conway
consistent and teachable rule? And why is this entire message written in questions? Have I simply been watching too many "Whose Line Is It Anyway?" episodes? Damian?

Re: Encapsulating the contents of container types

2011-08-20 Thread Damian Conway
ould result in the safe behaviour (i.e. full encapsulation). You ought to have to explicitly request anything else. One of the *big* selling points of Perl 6 is the prospect of "OO done right". Leaky encapsulation ain't that. Damian

Re: Tweaking junctions

2010-11-01 Thread Damian Conway
#x27;s not returning eigenstates, and some of us believe it *can't* every return eigenstates, then it certainly shouldn't be called C<.eigenstates>. Damian

Re: Tweaking junctions

2010-10-29 Thread Damian Conway
function does one consistent thing (regardless of the specific types of its operands) whereas I want: A given operator or function does one thing (consistent with the specific types of its operands) In other words, you seem to be arguing for monomorphism, whereas I'm definitely arguing for polymorphism. Neither is inherently better, but one is inherently more powerful. While I deeply respect your position, I'm going to keep arguing for that more powerful alternative. Damian

Re: Tweaking junctions

2010-10-27 Thread Damian Conway
But that's just "having a side-effect", which we already know is inappropriate for junctions (and hyperoperators, and autothreaded loops, and pretty much any other kind of parallel construct). Damian

Re: Tweaking junctions

2010-10-25 Thread Damian Conway
I have absolutely no objection to .eigenvalues() returning a Set, rather than a List. Indeed, I think it would be even more valuable that way. Damian

Re: Tweaking junctions

2010-10-25 Thread Damian Conway
sues. Other possibilities are: select(@values) < one(3..7) those(@values) < one(3..7) whichever(@values) < one(3..7) itemize(@values) < one(3..7) extract(@values) < one(3..7) ...of which, only C really seems a good alternative. Any other suggestions most welcome! Damian

Re: Tweaking junctions

2010-10-25 Thread Damian Conway
embedded eval. But, in the name of maintainability, I probably should benchmark it both ways. Thanks for pointing that out, Ben. Damian

Re: Tweaking junctions

2010-10-23 Thread Damian Conway
decision to make junctions behave "normally" wrt comparisons. They're much easier to understand the way they are now. I am merely trying to reintroduce the useful extra concept of a collection of numbers that filters under comparisons. But if people aren't comfortable, I'm happy to leave it as a module (especially since it's already written). I would hate this (very worthwhile) discussion to distract from the key point of the original post: namely, that the private C is misnamed, and a public C<.eigenvalues> is missing. Damian

Re: Tweaking junctions

2010-10-23 Thread Damian Conway
(my $is_valid = Num & {$_>0} | Str & /zero|one/). And, of course, they're in the core because there's no point in having that much power and usefulness if it's not fast too. Damian

Re: Tweaking junctions

2010-10-22 Thread Damian Conway
eir functional or operator-oriented alternatives. I'd like these in the core language (for performance and universal accessibility), but if not, I already have a nearly-complete implementation of a module implementing them, which runs successfully on the current release of Rakudo*. I appen

Tweaking junctions

2010-10-21 Thread Damian Conway
~~ UNACCEPTABLE { say "Unacceptable password. Don't use any of these:"; say UNACCEPTABLE.eigenstates¬».fmt("\t%s\n"); } If nothing else, we really do need to rename the current C method. Damian PS: I also note that the most recent release of Rakudo* defines the C<.eigenstates> method as public, which is inconsistent with the current specification. That probably needs to be fixed as well.

Re: threads?

2010-10-12 Thread Damian Conway
ify successful patterns of use and steal^Wborg^Wborrow the very best available solutions. Damian

Re: [perl6/specs] 58fe2d: [S12] spec setting and getting values of attribute...

2010-09-30 Thread Damian Conway
. :-) As long as it's easily searchable and vaguely pejorative (e.g. has the work MONKEY in it). Hm. You need to use MONKEY_TYPING when you're monkeying with typing, so maybe when you're monkeying with what can be seen (and abusing Perl 6 as if it were C) then you need to use MONKEY_SEE Damian

Re: [perl6/specs] 58fe2d: [S12] spec setting and getting values of attribute...

2010-09-30 Thread Damian Conway
that have accessors. I'd be happy with that. > Maybe .new should also default to his behavior. I'd be happy with that too. >> Then Damian's position (which I support) is supported and so are monkeys. > > Ook ook! "Apes! I meant apes!!!" ;-) > Moritz > (who actually writes Perl 6 code on a nearly daily basis). Damian (who does too)

Re: [perl6/specs] 58fe2d: [S12] spec setting and getting values of attribute...

2010-09-30 Thread Damian Conway
be properly encapsulated and stable, unless someone explicitly declares they are monkeying. As it stands at the moment, it's not clear to me why we even bother with opaque objects, if it's going to be this trivial to break encapsulation. Damian

Re: [perl6/specs] 58fe2d: [S12] spec setting and getting values of attribute...

2010-09-30 Thread Damian Conway
Carl wrote: > For what it's worth, we had exactly this discussion a couple of days > ago on IRC. I represented your views above, Damian. Thank-you for that. > As long as C<.perl> works the way it does, there can be no real > privacy. Sigh. That is indeed badly bro

Re: [perl6/specs] 58fe2d: [S12] spec setting and getting values of attribute...

2010-09-30 Thread Damian Conway
ractice are explicitly marked in a consistent and easily searched-for manner? Damian

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

2010-08-04 Thread Damian Conway
l have to rewrite when the Pod spec gets updated. Or, alternatively, to require all Pod parsers to be infinitely backwards compatible across all versions. :-( Damian

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

2010-08-04 Thread Damian Conway
Aaron wrote: > I dislike "reserved" in this context, but understand why the namespace has > to be shared. For config options, I'd say anything should go, but people > inventing their own config options should be aware that across N release > cycles, new options may be introduced. ...which means t

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

2010-08-04 Thread Damian Conway
available to users and the parser should simply accept them without complaint and include them in the internal data structure it builds, whereupon they will be available to user-defined Pod extensions. Damian

Re: series operator issues

2010-07-22 Thread Damian Conway
so I certainly wouldn't object to having the index of the next generated element readily available as an explicit variable in a series' generator block. That would make all manner of evil both easier and cleaner. >;-) Damian

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

2010-04-11 Thread Damian Conway
allow those (apparently elite few) who can correctly use a hyphen to correctly use the hyphen, whilst the shambling masses can just randomly type underscores or hyphens between each word, as their atavistic whims dictate. ;-) Damian

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

2010-04-10 Thread Damian Conway
) And is it really so hard to teach: "use underscore by default and reserve hyphens for between a noun and its adjective"? Perhaps it *is*, but then that's a very sad reflection on our profession. I'm certainly not saying we mightn't collectively find a better (more useful) rule, but that one doesn't strike me as particularly hard. Damian

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

2010-04-10 Thread Damian Conway
h the C<.time-zone()> method (or, preferably, we should jut bite the bullet and go with C throughout). Damian

Re: A common and useful thing that doesn't appear to be easy in Perl 6

2010-04-07 Thread Damian Conway
re like the constant declarator syntax, I'd have thought: enum Perms = 1,2,4...*; was a much closer analog (and syntactically cleaner too). Damian

Re: A common and useful thing that doesn't appear to be easy in Perl 6

2010-04-07 Thread Damian Conway
t it provides the necessary flexibility and tools to allow someone to implement a new datatype and declarator syntax and integrate them seamlessly into the language, without having to redefine the language itself...or modify the compiler. Damian

Re: A common and useful thing that doesn't appear to be easy in Perl 6

2010-04-07 Thread Damian Conway
# Also declares: subset Perms of Int where 0 .. [+|] @constant_values; # Hence allows: my Perms $perms = Read +| Write +| Mutilate; # Okay my Perms $bad_perms = Read +| Write +| 42; # Error Aw heck, now that I've specified it, the implementation is just a SMOP. Forget I asked. I'll just write it myself! ;-) Damian

Re: A common and useful thing that doesn't appear to be easy in Perl 6

2010-04-07 Thread Damian Conway
series operators; it seems a shame not to use > them for powers of two when appropriate. I certainly agree there. Damian

Re: A common and useful thing that doesn't appear to be easy in Perl 6

2010-04-06 Thread Damian Conway
rs can still easily convert the final set to an appropriate bit-pattern when it's time to pump the results out to the hardware. Damian

A common and useful thing that doesn't appear to be easy in Perl 6

2010-04-06 Thread Damian Conway
nstantly have to be reinvented. If anyone can think of a cleaner way to do it within the current semantics, I'd be very happy to hear of it. I'm jetlagged and bleary from a full day of teaching and I may well be missing an obvious answer. Thanks, Damian

Re: continuation markers for long literals (was Re: r29931 - docs/Perl6/Spec)

2010-03-03 Thread Damian Conway
012_345_678_901 ); if you like to group your thousands for better readability. With adequate constant folding, both of those are still compile-time constants. Damian

Re: r29768 - docs/Perl6/Spec

2010-02-19 Thread Damian Conway
eparately. That interpretation is not consistent with the other examples immediately above and below it. Damian

Re: Gripes about Pod6 (S26)

2010-02-10 Thread Damian Conway
Carl observed: > Partly that is because documentation isn't at the forefront of things > that need to be implemented for Perl 6 to be useful, so it's kind of > lagging behind the rest. > > Partly it's because Damian is the "owner" of that synopsis, and he

Re: S26 - The Next Generation

2009-09-21 Thread Damian Conway
Pod is rendered. To do that, they need to be able to walk the documentation tree (a.k.a. $=POD) and extract useful information from any class, code, or variable declarations associated with a particular comment-style node in the doctree. Damian

Re: S26 - The Next Generation

2009-09-17 Thread Damian Conway
oo, if necessary, but that would then make the performance hit hit very hard indeed. I suspect that it would be better to preserve the Poddish parts of the AST structure and just have them transmogrify into the appropriate Pod objects on demand. Damian

Re: S26 - The Next Generation

2009-09-17 Thread Damian Conway
be maintained past the > creation of the AST. Unfortunately, it is. Perl 6 defines that Perl 6 programs can always access their own Pod at runtime (via $=POD). You probably can't even optimize the information away in the absence of any compile-time reference to $=POD, since there are plenty of symbolic ways to refer to $=POD at run-time. Damian

Re: Looking for help updating Perl 6 and Parrot part of Perl Myths talk

2009-09-14 Thread Damian Conway
.for those who can handle it. I guess my point is simply that not everyone can handle it. Just as not everyone could handle raw inside-out techniques, which is why Class::Std was written in the first place. But, as you say, this is now far off-topic, so let's leave it at that. Damian

Re: Looking for help updating Perl 6 and Parrot part of Perl Myths talk

2009-09-14 Thread Damian Conway
in particular the recommendation to use Class::STD/etc is outdated, > and people should use Moose instead. There is no doubt that Moose is an excellent and very advanced framework, but both the above assertions are highly debatable, especially if you s/moribund Class::Std/actively developed Object::InsideOut/. Damian

Re: S26 - The Next Generation

2009-09-08 Thread Damian Conway
lename) {...} #=>[m1] #= Here's a > block for A. >        my Bool method close () {...}         #=>m2 > > And given that brief names are going to be preferred, this could > result in very compact, yet still readable, combinations of declarator > aliases and blocks. Yes, this is a definite advantage of the proposal. No question. But I'm still concerned that the two syntaxes are just so similar. I'll continue pondering the trade-off. Damian

Re: S26 - The Next Generation

2009-09-08 Thread Damian Conway
?FILE>. The latter. Variables are just too common in documentation to have (some of) them interpolate automagically. > Or would you have to alias the variable and then refer to it? No. I envisage that A<> would recognize an alias starting with a sigil, and "auto-alias" it for you. Damian

Re: S26 - The Next Generation

2009-09-07 Thread Damian Conway
bility would be to allow empty A<> tags in a > declarator block, with 'A<>' being replaced with the name of the > declarator to which the block is attached: These are both very useful ideas. I'll ponder them carefully in preparation for the next revision. Thanks, Jon! Damian

Re: S26 - The Next Generation

2009-09-07 Thread Damian Conway
$tree.size() == 1 :ok; } Not to mention all of the clever uses I can't think of yet. ;-) Damian

Re: S26 - The Next Generation

2009-08-25 Thread Damian Conway
Smylers pointed out: >>    * Hence it must always parsed using full Perl 6 grammar: perl6 -doc > > Having a multi-character option preceded by a single hyphen doesn't play > well with bundling of single-character options... You make many good points. Changed to: perl --doc Thanks, Damian

Re: S26 - The Next Generation

2009-08-19 Thread Damian Conway
tions to the general syntax. However, I had originally thought that we should have =alias and =dealias directives to delimit code extractions. In the end I liked the use of the code's own delimiters better, but I guess if people preferred to have two directives as delimiters, we could consider that instead. Let's see what others think. Damian

Re: S26 - The Next Generation

2009-08-19 Thread Damian Conway
sure we *will* have a safety mode of parsing Pod (maybe: perl -undoc) But it can't be on by default, otherwise no-one can write anything but vanilla Pod and expect it to work. It's like saying that 'use' is potentially dangerous (which it *is*) so can we have it off by default. In Perl, the answer has to be "no". Damian

Re: S26 - The Next Generation

2009-08-19 Thread Damian Conway
g the code block alias, are the outermost curly braces > considered to be part of the ambient code? Yes. All ambient code is actual code. > Why is =END a block, and not a directive? Damn good question. I can't think of any reason off the top of my head. I'll need to ponder that. Damian

Re: S26 - The Next Generation

2009-08-19 Thread Damian Conway
see the logic of #`[= but I just can't see the aesthetics of it. I'd much rather have to only look at the second character to determine it's Pod, not a vanilla comment. Besides, I think people will simply learn that #[ is an embedded comment, where specifies what kind of comment it is (I can certainly envisage other kinds besides just vanilla and Pod-flavoured) Damian

Re: S26 - The Next Generation

2009-08-19 Thread Damian Conway
gt; Having to use aliases at all to refer > to things that the Perl 6 compiler already has a name for seems like > an ugly/heavyweight/suboptimal approach. I think aliases are essential. We need a way of referring to ambient code within Pod, without the Podder having to write more code to get it. Damian

Re: S26 - The Next Generation

2009-08-19 Thread Damian Conway
   #= some Pod > > Then &fu is a multi, not a particular candidate. Does it actually > attach to the .WHY of the candidate? Or of the multi? Of the particular candidate. I'll make that clearer. (If you want to document the entire multi, attach the documentation to the proto.) Damian

Re: S26 - The Next Generation

2009-08-16 Thread Damian Conway
: Initiate a specified spell normally .kast(Spell $s) : Initiate a specified spell abnormally Damian

Re: comments as preserved meta-data (was Re: Embedded comments ...)

2009-08-13 Thread Damian Conway
Raiph Mellor hyperpunned: > With this whiny man exchange ultimately having bourne supreme fruit, > the apocalypse watch for the post damian weekend begins... ARRRG! Damian ;-)

Re: comments as preserved meta-data (was Re: Embedded comments ...)

2009-08-13 Thread Damian Conway
h hope that this new revision will satisfy The Overmeer Desiderata [1] too. Damian [1] Sounds like a Robert Ludlum novel, eh?

Re: confusing list assignment tests

2009-07-28 Thread Damian Conway
degree of context discrimination you need. Further to that idea, I'm actually planning to attempt to port Contextual::Return to Perl 6 in the next few weeks. Damian

Re: XOR does not work that way.

2009-06-22 Thread Damian Conway
ncise explanation of both these senses of xor. Damian

Re: Multi-d array transforms (was Re: Array rotate)

2009-06-12 Thread Damian Conway
racter is a small price to pay for perfect SWIM (and not just "Say What I Mean", the real benefit is the other SWIM: "See What I Meant"). Of course, this assumes that @a.=shift, @a.=push, etc. aren't actually implemented with a copy-modifier-and-replace, but are optimized to in-place mutators, under the hood. Damian

Re: Amazing Perl 6

2009-05-28 Thread Damian Conway
operator (except for non-associating operators) can be surrounded by square brackets in term position to create a list operator" and has an example of actually implementing the &prefix:<[+]> operator. Damian

Re: Amazing Perl 6

2009-05-28 Thread Damian Conway
x:<+>, how do I refer to the Code of the > list operator [+]? &prefix:<[+]> Damian

Re: Amazing Perl 6

2009-05-28 Thread Damian Conway
o arguments, '[+]' can accept > an arbitrarily long (or short) list of arguments. And since &[+] is &infix:<+>, that's how it knows. :-) Damian

Re: Amazing Perl 6

2009-05-28 Thread Damian Conway
al.org/syn/S03.html#Nesting_of_metaoperators >> PS: A really mean, but very effective, way of emphasizing the ease, >>    expressiveness, compactness, and readability of Perl 6 code is to >>    take each of the examples and show the same thing written in Java. >;-) > > It might be appropriate to compare some examples with Ruby or Python. Only if the comparisons are suitably invidious. ;-) Damian

Re: Amazing Perl 6

2009-05-27 Thread Damian Conway
ic { token Literal { + | } } * "Only perl can parse Perl 5" but "Even Perl 6 can parse Perl 6": given $source_code { $parsetree = m:keepall//; } And that's without even mentioning all

Re: Docstrings in Perl 6

2009-05-03 Thread Damian Conway
dent of the source > code, and need not be in the same file. That's certainly true of your proposal. However, many might argue that one *disadvantage* of using Pod blocks plus :name<> that way is that the documentation is independent of the source code, and need not be in the same file. ;-) Damian

Re: Getting rid of want()

2009-03-31 Thread Damian Conway
text (i.e. how many elements are expected back). That information can be very handy for optimization. And, yes, C::R would already handle it if I could think of a clean interface that was implementable in Perl 5 without source filters. Damian

Re: Junction Algebra

2009-03-29 Thread Damian Conway
', 'bar'))) > 2) Also, is the following true for nested 'all' junctions? viz. > all(... , all('foo', 'bar')) === all(...,'foo','bar') Yes, with a similiar "directly" caveat, as above. > 3) Conjecture: The following is true of all junction types, eg., > junc(..., junc(...)) === junc(..., ...) No. As Patrick so ably pointed out, this is not true for 'one' nor for 'none' Damian

Re: On Junctions

2009-03-28 Thread Damian Conway
uot;) in Perl 6, there will soon be a module that facilitates them. ;-) Damian

Re: On Junctions

2009-03-27 Thread Damian Conway
n't be surprised if all compound junctions can flatten into > equivalent simple junctions. In general, they can't; not without changing their meaning. Damian

Re: Logo considerations

2009-03-24 Thread Damian Conway
ar that was definitely not the case. Damian

Re: RFD: Built-in testing

2009-01-20 Thread Damian Conway
t a general TEST {...} block (which only runs if testing is enabled) might be valuable? Damian

Re: Should $.foo attributes without "is rw" be writable from within the class

2008-09-17 Thread Damian Conway
read-only, whereas a $!foo attribute defaults to read-write. Damian

Re: adverbial form of Pairs notation question

2008-09-08 Thread Damian Conway
rely to point out that Larry's response in this thread seems to revise that proposition somewhat, and I would like to suggest that, if :foo() is now to mean something more sophisticated that :foo(undef), then we should still find a "cheap" way of building adverbs with undef values. Damian

Re: List.uniq

2008-09-08 Thread Damian Conway
Moritz Lenz wrote: There are some tests for List.uniq in the test suite, and pugs implements it, but it's not in S29. Damian seems to have though we should have it. So should we have it? I still think we should. If only because I've seen it re-(mis)-implemented so many times.

Re: Perl 6 fundraising and related topics.

2008-03-26 Thread Damian Conway
those in the Perl community who are either building our future or (just as importantly) maintaining our present. But injecting UCE into such discussions does not further that goal, and I am sincerely sorry that it was done in my name. Damian

Re: Documenting Perl6 part 2

2007-07-11 Thread Damian Conway
Just a brief note to reassure Mark--and everyone else who's interested-- that I'm not ignoring his post...I'm just fully occupied at the moment with other (paying) work. In the meantime I'm thinking very carefully about what Mark suggested. I'll reply properly as soon as I am able. Damian

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

2007-06-22 Thread Damian Conway
the necessary syntactic extensibility and the essential building blocks (parser, DOM, module support) required for the proponents of each individual documentation philosophy to create a mark-up system and supporting tools best suited to their specific needs and objectives. Damian

  1   2   3   4   5   6   7   8   9   10   >