Fantom Syntax for Java Programmers
This slideshow shows some of the syntactical differences between Fantom and Java. Each slide displays a concise Fantom code example and explains how it differs from Java.
Click a title below to show the slide above, then mouse hover over it to prevent cycling.
- Hello Fantom!
- Literals
- Maps and Lists
- Fields
- Methods
- Classes
- Mixins
- Packaging
- Bonus! - Unit Testing!
- Bonus! - Null or Not-Null!?
Try out any example online, with the Fantom Coding Ground!
Edits
29 July 2016 - Restyled and reworded as part of the article migration to alienfactory.co.uk.
2 August 2014 - Original article.