Constructors and mixins

2004-08-22 Thread Ovid
promising, but it seemed to be a compile-time tool. Cheers, Ovid = Silence is Evilhttp://users.easystreet.com/ovid/philosophy/indexdecency.htm Ovid http://www.perlmonks.org/index.pl?node_id=17000 Web Programming with Perl http://users.easystreet.com/ovid

Re: Synopsis 9 draft 1

2004-09-21 Thread Ovid
to reach for another language, regardless of how easy the languages are to integrate? Cheers, Ovid = Silence is Evilhttp://users.easystreet.com/ovid/philosophy/indexdecency.htm Ovid http://www.perlmonks.org/index.pl?node_id=17000 Web Programming with Perl http

Re: Perl 6 Summary for 2004-12-20 through 2005-01-03

2005-01-04 Thread Ovid
--- Jon Ericson [EMAIL PROTECTED] wrote: Austin Hastings [EMAIL PROTECTED] writes: s/conses/consensus/g ? I assumed it was a Lisp reference. ;-) contheth? (No, I'm not really *quite* that clueless.) Cheers, Ovid = Silence is Evil http://users.easystreet.com/ovid

Logic Programming in Perl 6

2005-02-03 Thread Ovid
make all three examples work from the one regular expression. Is there more here that I am not seeing (I confess to not having paid close attention.) And feel free to correct my syntax. Cheers, Ovid = If this message is a response to a question on a mailing list, please send follow up

Re: Perl 6 Summary for 2005-01-31 through 2004-02-8

2005-02-09 Thread Ovid
--- Matt Fowles [EMAIL PROTECTED] wrote: Logic Programming in Perl 6 Ovid asked what logic programming in perl 6 would look like. No answer yet, but I suppose I can pick the low hanging fruit: as a limiting case you could always back out the entire perl 6 grammar and insert

Re: Logic Programming with Rules (and Argument Patterns)

2005-03-09 Thread Ovid
, regexen and makefiles all dance around logic programming -- well, makefiles sort of stumble -- but if LP was more readily available, people would be more likely to appreciate it. Unfortunately, while Prolog is a piece of cake to learn, this thread made my head hurt. Cheers, Ovid If this message

Re: Logic Programming with Rules

2005-03-09 Thread Ovid
been thinking that this would be a fun project for me to cut my Parrot teeth on. Specifically, porting AI::Prolog. However, porting a proper WAM (Warren Abstract Machine) would be a better choice. Now to find the tuits :) Cheers, Ovid -- If this message is a response to a question on a mailing

say and print (pugs)

2005-04-08 Thread Ovid
on that :) In any event, where the heck do I find the docs for say and print? Perl6::say doesn't default to $_, but I'm not sure if that implementation is correct, either. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web

(pugs) Managing pleac

2005-04-09 Thread Ovid
since a lot of code won't even compile. And please, if you have commit access, feel free to correct my code and add more. I don't want to do this by my Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming

(pugs) Managing pleac

2005-04-09 Thread Ovid
since a lot of code won't even compile. And please, if you have commit access, feel free to correct my code and add more. I don't want to do this by myself. http://svn.openfoundry.org/pugs/examples/pleac/ Cheers, Ovid -- If this message is a response to a question on a mailing list, please send

Re: Question about $pair.kv

2005-04-09 Thread Ovid
. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Aliasing swapped values

2005-04-10 Thread Ovid
, $d); # whoops! That's going to confuse the heck out of people. If we do as Perl5 does, we'll merely be swapping values since aliasing really doesn't make much sense here, but that means for this case, := == =. Cheers, Ovid -- If this message is a response to a question on a mailing list, please

Roles and Trust

2005-10-05 Thread Ovid
, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: Roles and Trust

2005-10-05 Thread Ovid
not entirely convinced that not allowing roles to assign trust is a good thing. It feels a bit arbitrary. Is there a compelling reason why roles should not do this? Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web

Re: Roles and Trust

2005-10-12 Thread Ovid
like it would be a nice compromise. Is this legal syntax? Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Private behavior in roles

2005-11-17 Thread Ovid
*and* what it provides. Are Perl 6 roles really going to blindly export everything they contain? This seems a serious mistake. I didn't see anything addressing this issue in http://www.perl.com/pub/a/2004/04/16/a12.html?page=12 Cheers, Ovid -- If this message is a response to a question on a mailing

Re: relational data models and Perl 6

2005-12-16 Thread Ovid
on the doorstep of logic programming but, if I recall correctly, a decision was already made that Perl 6 wouldn't be delayed for its inclusion. A sad, but necessary choice. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list

Re: relational data models and Perl 6

2005-12-16 Thread Ovid
agree here. You have to have, at minimum, one selector for each new datatype if for no other reason than to cast a string to your new data type. Otherwise, your data types would only be constants because you would have no way of assigning a value. Cheers, Ovid -- If this message is a response

Fw: Logic Programming for Perl6 (Was Re: 3 Good Reasons... (typo alert!))

2006-05-25 Thread Ovid
Larry pointed out that this topic is better suited for perl6-language instead of perl6-users, so I'm forwarding this along. Feel free to exercise your delete key. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list

Re: Fw: Logic Programming for Perl6 (Was Re: 3 Good Reasons... (typo alert!))

2006-05-27 Thread Ovid
-strings Ooh, looks promising. In that scenario, is a hash viewed as an array of pairs? If so, we could potentially have logic programming matching just about any abitrary data structure. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up

Runtime role issues

2006-10-11 Thread Ovid
can also mixin a precomposed set of roles: $fido does Sentry | Tricks | TailChasing | Scratch; Should that be the following? $fido does Sentry Tricks TailChasing Scratch; Cheers, Ovid -- Buy the book -- http://www.oreilly.com/catalog/perlhks/ Perl and CGI -- http

Re: Runtime role issues

2006-10-11 Thread Ovid
want those behaviors to bleed over to the other layers of my application. Whether or not this is a clean way of looking at the problem, I don't know. Cheers, Ovid -- Buy the book -- http://www.oreilly.com/catalog/perlhks/ Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

S12: can(), signatures and casting

2007-04-29 Thread Ovid
like we'd need return values to guarantee that the returned type is exactly what we claimed. method foo(Int $bar, Int $baz) returns Int { return $foo/$baz; } Since the return value might be a Float, does it get cast to an Int, thereby discarding information? Cheers, Ovid -- Buy the book

Re: xml and perl 6

2007-11-29 Thread Ovid
the tautology, when complex types are involved, what any user needs is dependent on what that user needs. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http://users.easystreet.com/ovid/cgi_course/ Personal blog - http://publius-ovidius.livejournal.com

Instance and Class disambiguation?

2008-01-20 Thread Ovid
If I call this: if $class.^can('wibble') { ... } Does Perl 6 return false if that's only an instance method? Will the WALK iterator returned by .^can return references to instance methods? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http

Re: Instance and Class disambiguation?

2008-01-21 Thread Ovid
--- Jonathan Lang [EMAIL PROTECTED] wrote: Ovid wrote: If I call this: if $class.^can('wibble') { ... } Does Perl 6 return false if that's only an instance method? Will the WALK iterator returned by .^can return references to instance methods? As I understand it, Perl 6

Re: First look: Advanced Polymorphism whitepaper

2008-04-28 Thread Ovid
this merely be a strange rendering artifact? Cheers, Ovid [1] Well, the monospaced bit isn't since I'm not used to programmers programming in word processors instead of text editors. Perhaps I'm spoiled :) -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http

Re: First look: Advanced Polymorphism whitepaper

2008-04-28 Thread Ovid
/polymorphism.png Glad to see the nice work, though. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http://users.easystreet.com/ovid/cgi_course/ Personal blog - http://publius-ovidius.livejournal.com/ Tech blog - http://use.perl.org/~Ovid/journal/

Re: treatment of isa and inheritance

2008-04-30 Thread Ovid
and the £ merely things which can be added by programmers by changing the grammar? That was one of the design goals of the language. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http://users.easystreet.com/ovid/cgi_course/ Personal blog - http://publius

Re: First look: Advanced Polymorphism whitepaper

2008-04-30 Thread Ovid
. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http://users.easystreet.com/ovid/cgi_course/ Personal blog - http://publius-ovidius.livejournal.com/ Tech blog - http://use.perl.org/~Ovid/journal/

Re: First look: Advanced Polymorphism whitepaper

2008-05-02 Thread Ovid
difference and reflection can't tell you that these are radically different. The only difference is semantic, and that's what the programmer has to provide. Otherwise, we're all out of jobs :) Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http

Re: First look: Advanced Polymorphism whitepaper

2008-05-02 Thread Ovid
semantic meaning isn't attached, restricting me to roles doesn't work. Requiring others to use roles in this case is also too restrictive. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http://users.easystreet.com/ovid/cgi_course/ Personal blog - http

Re: treatment of isa and inheritance

2008-05-02 Thread Ovid
entire language from a pidgin to a creole), then we might as well consider that a couple of extra letters to introduce clarity may not be all that bad. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http://users.easystreet.com/ovid/cgi_course/ Personal

Re: Where is Manhattan Dispatch discussion?

2008-05-06 Thread Ovid
papers, etc.? This this: http://use.perl.org/~luqui/journal/27362 Luke makes some interesting comments, but you'll want to click the Great Multimethod Debate link (http://tinyurl.com/5hm4ze). Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http

Google index and subsets (two topics for the price of one!)

2008-06-09 Thread Ovid
5 with tie, but tied variables are no fun) Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Personal blog - http://publius-ovidius.livejournal.com/ Tech blog - http://use.perl.org/~Ovid/journal/

Re: Google index and subsets (two topics for the price of one!)

2008-06-09 Thread Ovid
--- Moritz Lenz [EMAIL PROTECTED] wrote: Ovid wrote: Anyone have any idea why Google is not indexing the official Perl 6 documentation at perlcabal.org/syn? I checked the robots.txt and it looks fine: http://www.perlcabal.org/robots.txt But the search box on http

Re: Google index and subsets (two topics for the price of one!)

2008-06-09 Thread Ovid
--- Jonathan Worthington [EMAIL PROTECTED] wrote: Ovid wrote: By default, block parameters (including $_) are readonly, I hope that is a deep readonly? In other words, if $_.position returns an array reference, can I mutate a value in that reference and the state of $_ is thereby changed

Re: Google index and subsets (two topics for the price of one!)

2008-06-16 Thread Ovid
. Now it's my turn to say that I can't follow that statement. Could you give some hints on these fascinating wins, please. I explain in more detail at http://use.perl.org/~Ovid/journal/36667 You asked why I think that constraints would need to modify the variable (would invocant be the right term

Re: Google index and subsets (two topics for the price of one!)

2008-06-16 Thread Ovid
{ return $_[0]++ } sub no_side_effect { my $x = shift; return $x++ } In Perl 6, since arguments to subs would have to be specifically written as 'is rw', we might be able to minimize this issue, but I don't know if we can stop it. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog

Building Junctions from Junctions

2008-06-23 Thread Ovid
, but with some values removed. How do I do that in Perl 6? I can't see that in the docs. Clearly we don't this to be done destructively as I suspect this will break autothreading, but building new junctions based on old junctions seems reasonable. Cheers, Ovid -- Buy the book - http

Re: Should Cgrep and Creverse work in CAny ?

2008-06-30 Thread Ovid
junctions. grep and map would make that trivial. If I've misunderstood, feel free to print this out and burn it :) Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com

Re: Should Cgrep and Creverse work in CAny ?

2008-06-30 Thread Ovid
--- On Mon, 30/6/08, Ovid [EMAIL PROTECTED] wrote: --- On Sun, 29/6/08, Patrick R. Michaud [EMAIL PROTECTED] wrote: Do Cgrep and Creverse act like the Cjoin method, in that they work for CAny object and not just objects of type CList? In other words,, should C $x.grep

Running Perl 6 Tests

2008-10-20 Thread Ovid
appears to work (I've only checked it superficially), so why not use that to make some of these tests a bit easier to write? Are we trying to avoid loading modules while testing core features? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog

Re: Running Perl 6 Tests

2008-10-20 Thread Ovid
be happy to update that test and send a patch. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Bug or feature? Hash autovivification

2008-12-31 Thread Ovid
) {...} # same thing, basically my %hash; %hashfoobar = foo; # duh So is this a bug? Revision: 34706 $ uname -a Darwin curtis-poes-computer-3.local 9.5.1 Darwin Kernel Version 9.5.1: Fri Sep 19 16:19:24 PDT 2008; root:xnu-1228.8.30~1/RELEASE_I386 i386 Cheers, Ovid -- Buy

Not a bug?

2009-01-11 Thread Ovid
I really don't think this is a bug, but it did confuse the heck out of me at first. This *is* expected behavior due to how {} is interpolated in strings, yes? $ perl6 -e 'my $foo = foo;say ~ $foo ~ ' foo $ perl6 -e 'my $foo = foo;say { ~ $foo ~ }' ~ foo ~ Cheers, Ovid -- Buy

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
- Original Message From: Ovid publiustemp-perl6interna...@yahoo.com This patch implements the .trim() method for strings. Now that I'm reading S29, I see there is no .trim() method there. I got that because it was referenced in pugs in the cookbook (not in tests, though

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
it, though. You'd have to figure out which methods to call. Or all could be allowed and $string.trim(:leading0) could all $string.rtrim internally. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
wanted to take that lead... How about .trim(:start) and .trim(:end)? So if: 1. No params, trim all 2. :start or :end, only trim that bit (not a negated option :) 3. If both, goto 1 Sound good? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
of how one *would* properly override trim's concept of whitespace Change your locale to one with a different concept of whitespace (are there any?) Otherwise, would this be trying to stuff too much into one function? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
: [] Note that this output is from my locally hacked version of Test.pm which is kind enough to tell you what the failure is. I'll submit a patch for that later. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
or it will be LEFT out. (I kill me. I really do :) Beers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
/Protestant implementation. I'll submit a patch for trim with the spectest data updated and work on the rest after the dust settles. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
- Original Message From: jesse je...@fsck.com On Mon, Jan 12, 2009 at 07:01:25AM -0800, Ovid wrote: I could optionally make the following work: $string.trim(:leading0); $string.trim(:trailing0); Alternatively, those could be ltrim() and rtrim(). 'left

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
- Original Message From: Larry Wall la...@wall.org On Mon, Jan 12, 2009 at 05:04:50AM -0800, Ovid wrote: : ...the trivial $string.trim and trim($string) case. Hmm, I'd think .trim should work like .chomp, and return the trimmed string without changing the original. You'd use

Re: Extending classes in a lexical scope?

2009-01-12 Thread Ovid
this: use Core 'MyCore'; And have that override core classes lexically. That solves the but I want it MY way issue that many Perl and Ruby programmers have, but they don't shoot anyone else in the foot. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog

Trimming arrays

2009-01-12 Thread Ovid
What should this output? my @array = ' foo ', ' bar '; @array .= trim; say @array.perl; And what if I have an array of hashes of hashes of arrays? Currently you can call 'trim' on arrays, but it's a no-op. Similar issues with chomp and friends. Cheers, Ovid -- Buy the book

Re: Trimming arrays

2009-01-12 Thread Ovid
issues with chomp and friends. It should probably say No such method. We have hyperops now to apply scalar operators to composite values explicitly: @array».=trim Won't that fail with 'No such method' on an array of hashes? Or are hyperops applied recursively? Cheers, Ovid -- Buy

Re: Extending classes in a lexical scope?

2009-01-12 Thread Ovid
issues at times when composition is unclear. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: [PATCH] Add .trim method

2009-01-12 Thread Ovid
or it needs to not be allowed (and thus fail with AoHoA and similar complex data structures). By the way, good work on this. Everyone loves useful string functions. Thanks. It's been lots of fun :) Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog

Re: Extending classes in a lexical scope?

2009-01-14 Thread Ovid
that email. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: Trimming arrays

2009-01-14 Thread Ovid
be expensive and have unwanted side-effects (what do you mean my hash had a reference to your ORM data?). Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl

Test.pm and skip()

2009-01-21 Thread Ovid
odd since every other function exported uses positional parameters. Thoughts? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http

Re: RFD: Built-in testing

2009-01-22 Thread Ovid
method has :ok in it, this shouldn't impact the overall plan, right? Side note: for the desugar, I'd still prefer we go with 'have/want' instead of 'got/expected'. We've been wanting to do this with TAP for a while. It reads well and also aligns nicely for fixed-width fonts. Cheers, Ovid -- Buy

Re: RFD: Built-in testing

2009-01-22 Thread Ovid
with Perl 5 tests: identifying tests. By promoting 'test' to a first class concept (not just adjectives), you can name a test. Right now, I'm trying to write App::Prove::History (http://github.com/Ovid/app--prove--history/tree/master), a bad name for code which saves the state of test runs. One

Re: RFD: Built-in testing

2009-01-22 Thread Ovid
me :) Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: RFD: Built-in testing

2009-01-24 Thread Ovid
tests. We should look into this more carefully!). Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

.trim and 'gilding the lilly'

2009-01-24 Thread Ovid
? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: .trim and 'gilding the lilly'

2009-01-24 Thread Ovid
it used appropriately. All other times the user wanted .chomp. Cheers, Ovid

Re: .trim and 'gilding the lilly'

2009-01-24 Thread Ovid
a slightly better idea of what others are thinking. (And a bit thanks to chromatic for regularly posting those updates. It helps a lot) Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http

Recursive Runtime Role Reapplication Really Rebounds

2009-03-08 Thread Ovid
, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Re: Recursive Runtime Role Reapplication Really Rebounds

2009-03-09 Thread Ovid
- Original Message From: Ovid publiustemp-perl6langua...@yahoo.com Eventually, the code broke and threw a bunch of weird recursive inheritance warnings due to multiple anonymous classes being applied to the object. This was *real fun* to debug, but I can imagine a scenario

Re: Recursive Runtime Role Reapplication Really Rebounds

2009-03-12 Thread Ovid
instead of Perl 6 and didn't know about this :) Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Roles driven by events

2009-03-16 Thread Ovid
? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

rakudo.org rss

2009-06-11 Thread Ovid
The RSS feed for rakudo.org shows the last update as Feb 28, 2009. Wasn't certain from the site where I should send a contact email. Thus, rss complaint list spam! http://rakudo.org/rss.xml Cheers, Ovid PS: Thanks for all of the fantastic work, folks! -- Buy the book - http

YAPC::EU and Perl 6 Roles

2009-07-07 Thread Ovid
to call, but I don't understand how a particular role's methods would be called here. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki

Re: YAPC::EU and Perl 6 Roles

2009-07-08 Thread Ovid
see, with Jonathan's, you only have to provide methods for what you're disambiguating, It seems like your code would require that I specifically list every method which is handled, which would clearly get unwieldy with large roles or many roles. Did I miss something? Cheers, Ovid -- Buy the book

Re: YAPC::EU and Perl 6 Roles

2009-07-08 Thread Ovid
- Original Message From: Jonathan Worthington jonat...@jnthn.net Ovid wrote: It needs the timed fuse() from a Bomb role and a non-lethal explode() from a Spouse role, though each role provides both methods. I'm curious... 1) How often do you in real life find yourself

Re: RFC: overriding methods declared by roles (Was: Re: Reusing code: Everything but the kitchen sink)

2009-07-13 Thread Ovid
a complex inheritance hierarchy to a roles-based system. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Freezing role methods

2009-10-14 Thread Ovid
that they're always calling the correct x(). How would Perl 6 approach this issue? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http

Trait researches on class wins in role composition

2009-10-14 Thread Ovid
finally realized that Java needed to do: they provide an @Override annotation for methods which override parent methods. The compiler should warn if an overridden method is not annotated as such (http://java.sun.com/javase/7/docs/api/java/lang/Override.html). See http://use.perl.org/~Ovid/journal

Re: Freezing role methods

2009-10-14 Thread Ovid
binding defers the decision which causes implementation details to leak to consumers of C. This means that if you change your roles, your consumers will potentially need to be rewritten. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http

Re: Freezing role methods

2009-10-15 Thread Ovid
, they seem wrong to me, but that's probably because I'm not reading them closely enough. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki

Re: Freezing role methods

2009-10-15 Thread Ovid
). However, if roles start making their way on to the CPAN, you won't necessarily have control over the source code, forcing you to fork or simply not use the role in question. Regrettably, that defeats the purpose of roles -- namely, to facilitate code reuse. Cheers, Ovid -- Buy the book

Re: unusual invocants

2009-10-21 Thread Ovid
on the other's method With that, you have roles which cannot be composed. You must rewrite one (bad if you don't own it), or omit one.. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http

Re: Debugging Grammars

2009-12-27 Thread Ovid
a '??' but no '!!'. Again, the new version (arriving in a week or so) should be better about such messages. Aargh! That one bugs me. I can see how I made that mistake, but boy, I should have spotted it :) Thanks for your help. Cheers, Ovid-- Buy the book - http://www.oreilly.com/catalog/perlhks

Re: Debugging Grammars

2009-12-29 Thread Ovid
As a follow-up to this, I have my code posted at http://blogs.perl.org/users/ovid/2009/12/configini-in-perl-6.html While my admittedly clumsy grammar matches, transforming it into an AST has failed miserably. Aside from the advent calendar or the online docs at http://perlcabal.org/syn/S05

Custom errors on subsets?

2010-01-04 Thread Ovid
, we have a filename: /Users/ovid/bin/perl6 Houston, we have a filename: /Users/ovid/bin/perl6 Constraint type check failed for parameter '$name' in Main (file src/gen_setting.pm, line 324) Obviously the error message can use some work, but how would I customize that error message

Re: Custom errors on subsets?

2010-01-04 Thread Ovid
should be a Num = -273.15, not '$_' } With something akin to that, developers won't have to write extra boilerplate every time a constraint fails. Plus, the code is friendlier :) Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http

Re: Custom errors on subsets?

2010-01-05 Thread Ovid
$name) { say Houston, we have a filename: $name; } foo($*EXECUTABLE_NAME); say before; foo('no_such_file'); say after; Output: Houston, we have a filename: /Users/ovid/bin/perl6 before after Is this a bug or just documented behavior that I don't know about

Re: Custom errors on subsets?

2010-01-05 Thread Ovid
, but I'm still not expecting the sub call to be skipped silently due to a constraint failure. Silent failures are bad :) Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog- http://use.perl.org/~Ovid/journal/ Twitter - http