From: Keith Rarick Date: 2007-08-31T04:30:37+09:00 Subject: Re: python-style decorators On 8/29/07, Trans wrote: > Just a thought... > [snip] That notation looks really nice. It's much better than my original proposal. I'm working on implementing it right now and I'll post it as soon as it's ready. > It should even be possible to combine this with example #3 to do: > > # Example 3 (class method) > > def meta.memoized.tck(x, y, z) > return z if x <= y > tck(tck(x - 1, y, z), tck(y - 1, z, x), tck(z - 1, x, y)) > end Unfortunately, that produces a syntax error. :( Ruby doesn't seem to let you give more than one dot in the name. kr