On Fri, Dec 21, 2007 at 08:41:54AM -0800, Jonathan Lang wrote:
and so on, you might do something like:
with qq :(c = false) {
I think this can be done with normal currying, something like
temp circumfix: := quote:qq.assuming(:!c);
-ryan
I'm thinking aloud here, so please bear with me.
A number of languages have a with ... construct that's intended to
cut down on repetitive typing, by factoring the invocant out of every
method call. Perl 6 also has this, in the form of given ...:
given $foo.bar.baz {
.dothis();
A number of languages have a with ... construct that's intended to
cut down on repetitive typing,
I hope I will be excused for dragging in the indecency, but it might be
worth looking at the concepts COBOL used to mitigate its verbosity, (e.g.
types defined in a structure that get inherited
Ryan Richter wrote:
Jonathan Lang wrote:
and so on, you might do something like:
with qq :(c = false) {
I think this can be done with normal currying, something like
temp circumfix: := quote:qq.assuming(:!c);
That handles the specific example that I had in mind, but does so in a
On Fri, Dec 21, 2007 at 08:41:54AM -0800, Jonathan Lang wrote:
: I'm wondering if something similar could be done for optional
: arguments - something along the lines of within the following block,
: assign value V to argument X of routine R by default. This would
: allow for a similar factoring