This page is no longer maintained — Please continue to the home page at www.scala-lang.org

type alias

3 replies
Russ P.
Joined: 2009-01-31,
User offline. Last seen 1 year 26 weeks ago.
I wrote a class in which "Map[String, Double]" appears several times. Since I am an obsessive minimalist, I am wondering if there is a way to define a type alias so I can refer to it more succinctly. If so, how?

By the way, what is the proper pronunciation of "Scala"? Is the first "a" long or short, or does it sound like "scholar"? Thanks.

Russ

Landei
Joined: 2008-12-18,
User offline. Last seen 45 weeks 4 days ago.
Re: type alias

Russ Paielli-4 wrote:
>
> I wrote a class in which "Map[String, Double]" appears several times.
> Since
> I am an obsessive minimalist, I am wondering if there is a way to define a
> type alias so I can refer to it more succinctly. If so, how?
>

type MyMap = Map[String, Double]

Cheers,
Daniel

Jens Alfke
Joined: 2009-01-30,
User offline. Last seen 42 years 45 weeks ago.
Re: type alias

On Feb 7, 2009, at 12:03 AM, Russ Paielli wrote:

> By the way, what is the proper pronunciation of "Scala"? Is the
> first "a" long or short, or does it sound like "scholar"? Thanks.

"SCAH-lah", with long "a"s. (This is documented somewhere, either
online or in the Artima book; I forget where. Also, it's an Italian
word.)

—Jens

David Biesack
Joined: 2008-11-18,
User offline. Last seen 2 years 38 weeks ago.
Re: type alias

> Date: Sat, 7 Feb 2009 00:03:52 -0800
> From: Russ Paielli
>
> By the way, what is the proper pronunciation of "Scala"? Is the first "a"
> long or short, or does it sound like "scholar"? Thanks.

See the FAQ on the Scala wiki :

http://scala.sygneca.com/faqs/general#how-is-scala-pronounced

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland