[Grace-core] The Raw and the Cooked - Was Re: Considering Traits as Objects in Grace
Marco Servetto
marco.servetto at gmail.com
Fri Mar 8 13:32:04 PST 2013
>> def foo = rule { xx }
>> def bar = rule { yy }
>> def baz = foo | bar // if foo and bar are raw or placeholders, can't request "|" on foo. oops.
>Why not? Surely that just cooks foo [...]
what about something like
def baz = options foo | bar | baz
where options is a function that takes foo and return an object that
can undestand | and so on?
with a more "flexible" syntax, ""::="" could be a better name for the
options function.
More information about the Grace-core
mailing list