Nice TWiki > Doc > LanguageComparisons > NiceVersusScala (r1.3) TWiki webs:
Dev | Doc | Main | TWiki | Sandbox
Doc . { Changes | Index | Search | Go }


Scala has many things in common with Nice: "Scala is a modern multi-paradigm programming language designed to express common programming patterns in a consise, elegant, and type-safe way. It smoothly integrates features of object-oriented and functional languages". There are also fundamental differences: Scala uses single dispatch (with traits and mixins).


  Unified Types Traits Mixins External Methods Inner classes
Nice Yes No No Yes No
Scala Yes Yes Yes No Yes


  Anonymous Functions Higher-Order Functions Currying Dynamic Dispatch
Nice Yes Yes No Multiple Dispatch
Scala Yes Yes Yes Single Dispatch

Type Parameters

  Generic Classes Generic Methods Variances Upper Type Bounds Lower Type Bounds
Nice Yes Yes Not yet Yes ?
Scala Yes Yes Yes Yes Yes

Java Compatibility

  Use Java classes Subclass Java classes Use in Java Java Statements/Operators
Nice Yes Yes Yes Yes
Scala Yes Yes Maybe No


Methods Pattern Matching Local Type Inference Comprehensions Option Types
Nice Multi Methods Some: Monomorphic Vars No String & ?String
Scala Case classes Yes Yes Some(String) & None

-- IsaacGouy - 22 Jan 2004

Does this mean that you want to make the comparison?

-- ArjanB - 22 Jan 2004

Topic NiceVersusScala . { Edit | Attach | Ref-By | Printable | Diffs | r1.22 | > | r1.21 | > | r1.20 | More }
Revision r1.3 - 24 Jan 2004 - 01:31 GMT - IsaacGouy
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.