> You have some pretty good points there. Your last example, however, is
> against your original point since it does a kind of "see later" that
> is worse than the previous suggestion: first you USE the parameters,
> then you declare them. That's really pretty confusing.
Yes, because a lot of people seem to prefer the terminal syntax. I'm
trying to find something acceptible that isn't just me demanding what
i want. I still think inline is better but i can't just keep shouting
about that can i? :)
I also realised that there isn't any requirement for the generic
parameters to be delcared between the name definition and the
parameter-list. They could very well be somewhere else. From a parsing
point of view (computer and human) it's probably easier to work with
them as in c# but it's worth looking at.
> I'm half taken by your argument, and I find the inline syntax that
> echoes the inheritance syntax the best suggestion in that category.
> > public static def foobar(par1 as T, par2 as Z, par3 as Y) as What
> > generic T(IFoo,contravariant)
> > generic Z(constructor)
> > generic Y(covariant):
> > print "types: {0}",typeof(T).Name,typeof(Z).Name,typeof(Y).Name
public static def foobar[of
T(IFoo,contravariant),Z(constructor),Y(covariant)](par1 as T, par2 as
Z, par3 as Y) as What:
print "types: {0}",typeof(T).Name,typeof(Z).Name,typeof(Y).Name
works for me, not a big fan of the "[of " but that seems to necasary
so i'll live with it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to
boolang@...
To unsubscribe from this group, send email to
boolang-unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/boolang-~----------~----~----~----~------~----~------~--~---