Re: names / defaults
2009-06-02 06:22:23 GMT
In fact I did not commit a new starr togeter with the named/default arguments
But I did commit a new starr with the new annotations implementation
The reason is that (actually in both changes), the pickle format has changed.
The new starr was done to make sure it uses that new format. Also, we can
now start using named/default arguments in the compiler/library.
If you build a new starr just make sure you build it based on a recent
version of trunk.
I have one question, I can see that you committed a new starr together
with the named/default args commit. What is in that new starr? Any
reason why it was made?
The reason I ask is because I am currently creating a new starr that
supports only the new early defs syntax, and that means to remove that
old syntax usage from trunk!
Lukas Rytz wrote:
> Named and default arguments are now in trunk. The main changes are:
> - MethodType now takes (params: List[Symbol]) as argument, no more
> - To create parameter symbols for a synthetic MethodType, use
> - the expression "foo(x = _)" was previously parsed as
> foo(x$1 => x = x$1)
> but is now parsed as a named application:
> x$1 => foo(x = x$1)
> - a "copy" method is added to case classes
> - the tree copiers in the compiler are now called "treeCopy", no longer
> To learn how to use named / default arguments and how they are implemented,
> see http://www.scala-lang.org/sid/1
> Cheers: Lukas
Anders Bach Nielsen | http://www.cs.au.dk/~abachn/
University of Aarhus | abachn-xFMzFlFZ0lk@public.gmane.org
Earth men are real men!