JavaFX Script Language Reference

Robert Field just finished the draft of the JavaFX Script Language reference

Here are a couple of snippets from spec:

"JavaFX Script is a compilable scripting language which allows you to quickly and easily write interactive graphical applications (also known as Rich Internet Appllications, or RIAs). JavaFX Script gets its heritage from both scripting languages, which offer fast and easy development with less of the armor provided by conventional languages, and object-oriented languages like Java, which offer the ability to build robust reusable components. It is aimed at moderately sized interactive graphical applications, rather than programming in the large. It does, however, have one feature that is more common in "bigger" languages: static (compile-time) typing. That is, before your program even runs, it is checked for incompatible relationships between data, helping you to find errors earlier."

"Like many other languages, including Java, C++, and Ruby, JavaFX Script allows you to use classes to represent a real or abstract entity. In this case, a point:"

class Point { 
   var x : Integer; 
   var y : Integer; 
   function show() {
      println("Point {x}, {y}")
   } 
}



Comments:

Your link gives a 404 in my Firefox coz you have whitespace on the end.

Posted by Kevin Hutchinson on November 29, 2008 at 05:33 AM PST #

Thanks Kevin, I fixed the URL.

Posted by Octavian Tanase on November 29, 2008 at 10:02 AM PST #

Post a Comment:
Comments are closed for this entry.
About

octav

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today