|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Announcement: Release of Scala v1.1.0-b1
Hello,
Version 1.1.0-b1 of Scala was released yesterday. Scala is a programming
language somewhere between Java and Standard ML that is compiled to Java
bytecode. Readers of this list might be interested in an undocumented
XML markup option of the compiler (-Xmarkup). With this, it is possible
to write:
class MyClass {
/** a function creating a html document containing a message
*/
def createBody( msg:String ) = {
<html>
<head>
<title>{ msg }</title>
</head>
<body background="#fff">
<h1>{ msg }</h1>
<p> created automatically on { getDate() }</p>
</body>
</html>;
}
// last expression of a block is the result
// C,Java-style comments are not allowed in literals.
}
The other changes compared to the previously available version are:
- New syntax to conveniently define several variables, values, methods
or classes which have the same initialising expression.
- New support for enumerations in the standard library.
- Change in the license to remove the advertising clause.
- Support for value classes in the scalap tool.
- Several bugs fixed in the compiler, standard library and installers.
The Scala team.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








