Nice (programming language)

from Wikipedia, the free encyclopedia

Nice is a programming language . Its syntax is very similar to that of Java , and the compiler also generates bytecode for a Java VM .

In contrast to Java, Nice supports a number of language elements that are known from the world of functional programming languages . In addition to real functions, this also includes the multi-methods (multiple dispatch), closures and higher-order functions known from Lisp .

Nice implements the paradigm of static typing . Thanks to a type inference mechanism, it is not necessary to assign a type to each parameter at the time of program design, provided that it is ensured that this can be determined dynamically at runtime. Nice also masters generic types , as they were also introduced in Java with version 1.5. The aim is to prevent class cast exceptions as much as possible. A special feature here is that the null value (optional in order not to hinder interoperability with Java) is viewed as an independent data type and it is therefore possible to recognize the occurrence of a null pointer as a type error during compilation.

See also

Web links