The Full Wiki

More info on Fantom (programming language)

Fantom (programming language): Wikis

Advertisements
  
  

Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.

Encyclopedia

From Wikipedia, the free encyclopedia

Fantom
Paradigm multi-paradigm
Appeared in 2007
Developer Brian Frank, Andy Frank
Stable release 1.0.47 (2009-11-18; 59 days ago)
Typing discipline static, dynamic
Influenced by C#, Java, Scala, Ruby, Erlang
Website www.fantom.org

Fantom is a general purpose object-oriented programming language that runs on the JRE, .NET CLR, and Javascript. The language supports functional programming through closures and concurrency through the Actor model. Fantom takes takes a "middle of the road" approach to its type system, blending together aspects of both static and dynamic typing. Like C# and Java, Fantom uses a curly brace syntax.

Contents

Typing

Fantom's type system is simple by design. All variables are statically typed, as they are in C# and Java. Fantom rejects generic types due to their complexity, but it does have a set of built-in generic types: List, Map, and Func. Fantom can also take on the feel of a dynamically typed language through dynamic calls and automatic downcasting. Fantom has an easy to use reflection API and metaprogramming capabilities.

Pods

In Fantom, the unit of deployment is called a pod. Pods take on the role of namespaces, packages, and modules. They are stored as .pod files, which are zip files containing the FCode (the Fantom bytecode), the documentation, and resource files necessary to run the pod. A pod can define any number of types for use in other libraries and applications. A pod name fully qualifies a type name. For example, fwt::Widget is distinct from webapp::Widget. If a pod contains a type named Main, then it can be executed on the command line with: fan <podName>

Fantom Widget Toolkit

Fantom ships with a standard windowing toolkit called the Fantom Widget Toolkit, or FWT for short. FWT was designed to be portable across several platforms. It is currently implemented on the JVM using the Standard Widget Toolkit as a backend. The Javascript implementation is backed by the canvas element and JavaFX, allowing FWT applications to be run in a web browser. There are plans for a CLR implementation using Windows Forms.

Language Renaming

The original name of the Fantom programming language was Fan, named after the neighborhood where the creators live in Richmond, Virginia. After gaining some popularity, members of the community raised concerns about the searchability of the name. In November 2009, the name of the project was officially changed from Fan to Fantom. [1]

See also

References

Source

External links

Advertisements

Advertisements






Got something to say? Make a comment.
Your name
Your email address
Message