Nice TWiki > Doc > LanguageComparisons > NiceVersusJython TWiki webs:
Dev | Doc | Main | TWiki | Sandbox
Doc . { Changes | Index | Search | Go }
A near-copy of this page exists on Python's wiki, at http://www.python.org/cgi-bin/moinmoin/PythonVsNice.

[Added a few remarks in italic -- ArjanB - 20 Aug 2003]

Jython (http://www.jython.org) is an implementation of the language Python (see http://www.python.org) in Java. It runs on the JVM, and can compile to java bytecodes (like Nice). Python is a very dynamic language, with many of the same good language features of Nice.

In order of the Nice manual:

Philosophy:

Packages

Classes

Fields

[*] Not strictly true, but close enough. See "bound methods" below.

Constructors

Parametric Classes

Functions and Methods

Functions

Methods

Assertions and Contracts

Statements

Expressions

Interfacing with Java

Nice methods can be called from java.

Types

Things Specific To Jython

The above is organized according to the Nice manual, but there are a few points that still need to be touched on because they are more specific to Jython than to Nice.

This is something worht trying for Nice but parsing is bit more difficult then. I like the idea of accepting both style of syntax so everyone can choose their favorite. Not documented yet but Nice supports operator overloading by adding a method with as name the operator between backquotes.
example: String `+`(String s1, String s2) = s1.concat(s2);


MichaelChermside

Topic NiceVersusJython . { Edit | Attach | Ref-By | Printable | Diffs | r1.5 | > | r1.4 | > | r1.3 | More }
Revision r1.5 - 21 Aug 2003 - 18:52 GMT - ArjanB
Parents: WebHome > LanguageComparisons
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.