Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Scala (programming language)

From Simple English Wikipedia, the free encyclopedia
Scala
Designed byMartin Odersky
DeveloperProgramming Methods Laboratory ofÉcole Polytechnique Fédérale de Lausanne
Filename extensions.scala, .sc
Websitewww.scala-lang.org

Scala is ageneral-purpose programming language—a language that is designed for solving all kinds of problems, not just a specific one.[1]

It provides support forfunctional programming, and isstatically typed. It is designed to fix some problems with Java,[2] and to be concise—to be able to express a lot with only a little bit of code.[3]

Scala code is supposed to becompiled intoJava bytecode, so Scala code can be run on aJava Virtual Machine (JVM). Scala haslanguage interoperability withJava—Scala code can be used in Java programs, and the other way around.[4]

Examples

[change |change source]

"Hello, World" example

[change |change source]

This is a small example of a Scala program. A simpleHello world program:

@maindefmain()=println("Hello, World!")

References

[change |change source]
  1. Odersky, Martin. (2008).Programming in Scala. Spoon, Lex., Venners, Bill. (1st ed., version 9 ed.). Mountain View, Calif.: Artima.ISBN 978-0981531601.OCLC 290459619.
  2. Odersky, Martin (2014)."The evolution of Scala: PLE'14 keynote".Proceedings of the 1st Workshop on Programming Language Evolution. New York, New York, USA: ACM Press. p. 4.doi:10.1145/2717124.2717126.ISBN 9781450328876.S2CID 38300782.
  3. Potvin, Pascal; Bonja, Mario; Bailey, Gordon; Busnel, Pierre (2013).Lecture Notes in Computer Science. Berlin, Heidelberg: Springer Berlin Heidelberg. pp. 144–162.arXiv:1509.07326.doi:10.1007/978-3-642-38911-5_9.ISBN 9783642389108.
  4. "Frequently Asked Questions - Java Interoperability | The Scala Programming Language".www.scala-lang.org. Retrieved2019-05-22.
Thisshort article abouttechnology can be made longer. You can help Wikipedia byadding to it.
Retrieved from "https://simple.wikipedia.org/w/index.php?title=Scala_(programming_language)&oldid=10422269"
Category:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp