forward IRepository of Fubar to 'FubarRepository'
forward component IRepository of Fubar to 'FubarRepository'
ernst
and without the 'to' ?
forward IRepository of Fubar >> 'FubarRepository'
Cool.
I think it is time to create Binsor syntax page in the wiki.
Fundamentally, I believe the two approaches can provide the same
functionality. That's the beauty of Boo isnt it? Extreme
flexibility.
The way that the AbstractBinsorMacro class is defined mimics the way
that the Boo transformers work in that it provides overridable
hook-ins for subclasses.
I'm not sure if anything I've done so far can be directly applied to
Binsor, though I do intend to study the code more this weekend and
perhaps I'll see something that I haven't seen yet.
Also, I believe that the syntax you proposed earlier in this thread
looks great and is readily achievable.
First, it is more self-documenting. A programmer can look at just the
base class and learn a lot about the DSL.
Second, making use of transformers to alter statements in order to fit
base class method calls is a more flexible cross-cutting approach.
Any DSL that uses a base class can also make use of these
transformers, hence more code reusability.
Last, and perhaps least important but still interesting, other
languages can be used with the DSL. A C# implementer could inherit
from the base class and make use of the methods. I'm supporting this
approach in Mite as an alternative for those who don't want to learn
Boo or who just must have intellisense.