Search results
Download. The official zip distribution can be installed on Windows, macOS, and Linux. See Setup for installation details. Fantom requires Java 8 (or greater). Any Java will work, including Oracle and AdoptOpenJDK. fantom-1.0.80.zip.
Fantom Programming Language. Fantom is a portable language that runs on the JVM and modern web browsers. It features a familiar Java-like syntax, static (and dynamic) typing, elegant system library, closures, immutability, actor concurrency, and much more.
Learning Fantom. If you want to dig deep, then you'll probably want to look over docIntro to get a background. At some point you should consider reading docLang front to back - it is designed to be read as book. Once you start writing code, you'll find examples and the reference APIs handy as you learn the standard libraries.
Link to 'Fantom Cheat Sheet' broken: Gary (2) Sun 8 Sep #2928: Execute Linux/windows bash commands in Fantom code then use the output: Sai Thallada (1) Fri 6 Sep #2765: Tabs in Depend Strings: SlimerDude (4) Thu 15 Aug #2926: ES Locale Props: SlimerDude: Thu 25 Jul #2924: ES Func.callList() SlimerDude (3) Thu 25 Jul #2925: Newb interpretation ...
In Fantom, all methods wrap a function accessed via the Method.func method. The Func for a method serves as its reflective handle. This relationship between functions and methods is a key aspect of how Fantom bridges object oriented and functional programming (the flip side is that all functions are an object).
Jul 17, 2023 · New JavaScript/TypeScript Compiler. Matthew posted an overview of a strategy to modernize Fanton's JavaScript infrastructure in post 2894. This work is fully completed and included in this build. This work allows JavaScript and TypeScript developers to consume Fantom APIs using modern conventions. There are now two JavaScript compilers:
Fandoc is the format used for: Fantom source code documentation via the ** comment. All the documentation manuals (including this document itself) Comments on fantom.org discussion groups. You can use the fandoc APIs to parse fandoc plaintext into a document object model and generate HTML.
Building JS with Fantom 1.0.80: SlimerDude (3) Sun 16 Jun #2909: RGB to HSL conversion: SlimerDude (4) Wed 20 Mar #430: Bundle Java classes in pod: tompalmer (28) Mon 18 Sep 2023 #2445: Js: Invalid left-hand side in assignment: Jeremy Criquet (7) Sat 2 Sep 2023 #2509: Implicit Function Return Types: SlimerDude (5) Tue 18 Jul 2023 #2864 ...
Fantom Readme. readme for distribution. Fantom Quick Links, Setup, Tools, Docs, Community. StartHere. learn how to get started and use the documentation. Learn More, Quick Start, Community Resources, Documentation Organization, Learning Fantom, Getting Involved. Tour. whirlwind tour of Fantom's features
Fantom supports a switch statement used to execute a block of code by matching the value of a expression against a list of case labels. The syntax is very similar to Java/C#: The condition expression is matched against all the case labels. If a match is found, then it executes the statements in that case's block.