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

2008-06-16 Thread Thomas Sandlaß
HaloO, On Monday, 16. June 2008 10:11:49 Ovid wrote: > For example, should the pre/postfix '++' be > listed as having a side-effect? I think so. But the scope where these side-effects take place is important as well. In your second example below the side-effect is restrained to the subs scope. Th

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

2008-06-16 Thread Ovid
--- TSa <[EMAIL PROTECTED]> wrote: > Daniel Ruoso wrote: > > In fact, I doubt that there's a way to completely avoid any > possible > > side effects on this closures. as the very first line of the > closure > > shows: > > > >$_.inside_of(...) > > > > This is a plain method call, there's no

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

2008-06-16 Thread Ovid
--- TSa <[EMAIL PROTECTED]> wrote: > I must admit that I hardly follow that statement. Why are > side-effects > essential to achieve constraint programming and why do you think that > the way to get at the constraint programming paradigm are the subset > type definitions? Because I can't think of

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

2008-06-15 Thread TSa
HaloO, Daniel Ruoso wrote: In fact, I doubt that there's a way to completely avoid any possible side effects on this closures. as the very first line of the closure shows: $_.inside_of(...) This is a plain method call, there's no way to tell if this method will change anything inside the

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

2008-06-15 Thread TSa
HaloO, Ovid wrote: In other words, I think we could get proper constraint programming if a subset can mutate its variable. Otherwise, all assignment would need to be wrapped inside of an eval and the code would be more bug-prone. I must admit that I hardly follow that statement. Why are side-

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

2008-06-09 Thread Daniel Ruoso
Seg, 2008-06-09 às 23:09 +0100, Ovid escreveu: > Well, looking at the examples that you and Jonathan listed, I see I > should refine my question. For example: > subset Crosshair of Point where { > $_.inside_of($target_area) > || > $target_area.has_moved > ?? $_.move_inside($ta

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

2008-06-09 Thread Daniel Ruoso
Seg, 2008-06-09 às 23:36 +0100, Ovid escreveu: > --- Jonathan Worthington <[EMAIL PROTECTED]> 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 a

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-09 Thread Jonathan Worthington
Ovid wrote: Well, looking at the examples that you and Jonathan listed, I see I should refine my question. For example: subset Crosshair of Point where { $_.inside_of($target_area) || $target_area.has_moved ?? $_.move_inside($target_area) :: $target_area.move_outside

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

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

2008-06-09 Thread Jonathan Worthington
Ovid wrote: Specifically, I was looking for the documentation on how subsets work See S12: http://dev.perl.org/perl6/doc/design/syn/S12.html#Types_and_Subtypes as it looks like we can get declarative style constraint programming for free: subset Crosshair of Point where { $_.inside_of($t

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

2008-06-09 Thread Moritz Lenz
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://www.perlcabal.org/syn/ returns nothing. The whole doma

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

2008-06-09 Thread Ovid
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://www.perlcabal.org/syn/ returns nothing. Specifically, I was looking for the docu