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
--- 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
--- 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
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
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-
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
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
--- 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
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
--- 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
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
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
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
13 matches
Mail list logo