A common image is the "scala naturae".
常见的图像是“自然尺度”。
Consider the following example scala session.
考虑下面的scala对话例子。
The name Scala is a contraction of the words scalable language.
Scala的名字来自词语:可伸缩的语言(scalable language)的缩写。
You compile and run such programs in one shot with the scala command.
你可以用scala命令一次性编译和运行这些程序。
This is another nice feature of Scala.
这是Scala的另一个很好的特性。
Can write XML directly in Scala program?
可在Scala程序中直接书写xml。
That single line of Scala code does a lot!
仅仅一行scala代码可以做这么多事情!
In fact, there is no virtual keyword in Scala.
实际上,在Scala中没有virtual关键字。
Remember that in Scala everything is an object.
记住,在Scala中一切都是对象。
Scala is a language for professional developers.
Scala是面向专业开发者的语言。
In fact, in Scala version 2.8, you can now do this.
事实上,在Scala 2.8版本里,你可以这么做。
I love Scala and it's my favorite programming language.
我热爱Scala,它是我最钟情的编程语言。
I think this is a key difference between Fan and Scala.
我想这就是Fan和Scala之间最重要的差异。
Scala V2.7.5 was used to develop the code in this article.
本文使用ScalaV2.7.5进行开发。
There is another alternative for earlier versions of Scala.
对于早些版本的Scala还有另外一种选择。
Once again, we learned a lot of Scala from a small example.
再一次的,我们从一个小例子里学习了许多Scala 的知识。
Scala lets you define more than one argument list for a method.
Scala可以让你为方法定义一个以上的参数列表。
The only tricky part is Scala syntax, which is markedly different.
惟一需要技巧的部分就是scala语法,这有着明显的差异。
At other times, a static language like Scala is just what you need.
而有时,一个静态语言,例如scala,会是你正需要的。
Scala also will not prevent you from writing code with mutable state.
Scala也不会阻止您在可变状态下编写代码。
The application code will be written in the Scala programming language.
应用程序代码将用Scala编程语言编写。
The second line prints the value of book, which is “Programming Scala”.
第二行打印出了book的值 --ProgrammingScala。
Let's examine the code in detail, so we can begin to learn Scala syntax.
为了学习scala语法,让我们来更详细地解释一下代码。
This is a pretty simple example of the power of pattern matching in Scala.
这个简单的例子证明了Scala中模式匹配的强大功能。
Have fun with that, and let me know if you find work programming in Scala!
愿您从中找到乐趣,如果发现了用Scala编程的工作,别忘了告诉我!
Programming in Scala is tantalizingly familiar and different at the same time.
Scala中的编程如此地熟悉,同时又如此地不同。
Replace the standard Scala library with the Android library talked about above.
用前面谈到的Android库替代标准的Scala 库。
This is what the Scala compiler does, so there is nothing too tricky about this.
这是Scala编译器的工作,所以这方面没什么太复杂的事情。
This is what the Scala compiler does, so there is nothing too tricky about this.
这是Scala编译器的工作,所以这方面没什么太复杂的事情。
应用推荐