Re: C as a "junction" operator

2003-01-20 Thread Dave Whipp
Damian Conway wrote: > Yes, but will it junctify them con-, dis-, ab-, or in-junctively??? Probably most similar to injunctively. But sequentially. I had been thinking of something like this: while () { print "matched $_" if $_ == for(1,2,3,4,5); } __DATA__ 1 2 9 3 4 5 Like the old bistable

Re: C as a "junction" operator

2003-01-18 Thread Damian Conway
Dave Whipp wrote: Let us now imagine that C is a junction operator, instead of a looping statement. Now we could write: my $x = for(1,2,3); my $y = mangle($x); and we can be certain that $y == (1,3,6), because a "for-junction" will distribute that evaluations sequentially. Yes, but will

C as a "junction" operator

2003-01-18 Thread Dave Whipp
In the L2R thread, I made a comment where I contrasted a for loop with a junction. On reflection, I think we could go further. If we defined my $prev = 0; sub mangle($value) { $value + $prev; $prev=$value } and then used it as: my $x = any(1,2,3); $y = mangle($x); then the semant