2 Jun 2009 08:22
Re: names / defaults
Hi Anders,
In fact I did not commit a new starr togeter with the named/default arguments
(http://lampsvn.epfl.ch/trac/scala/changeset/17916).
But I did commit a new starr with the new annotations implementation
(http://lampsvn.epfl.ch/trac/scala/changeset/17925).
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.
Cheers: Lukas
On Mon, Jun 1, 2009 at 20:03, Anders Bach Nielsen <andersbach.nielsen-p8DiymsW2f8@public.gmane.org> wrote:
Hey Lukas
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!
/Anders--
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
> List[Type]
> - To create parameter symbols for a synthetic MethodType, use
> methodSymbol.newSyntheticValueParamss(argtypess)
>
> - 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
> "copy"
>
> 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!
RSS Feed