On 07/01/11 21:11, Wacek Kusnierczyk wrote:
It's clear that Oz has not developed its type system to the same
level of sophistication as for example Haskell or Caml have done.
What it has done instead is define a simple, efficient, and flexible
set of data structures in which you can program what you need.
yes, strings as sequences of ints are (almost) unproblematic. i was
referring specifically to your comment on strings and list operations,
which didn't really address the original question and was no
justification for the choice made in Oz.
vQ
There are two choices: why use lists to represent strings, and why use
integers to represent characters. As I understand the Oz design
philosophy, the language tries to factor concepts as orthogonally and
minimally as possible. Oz does not multiply concepts if the benefit is
marginal. That is why the type system is so simple and that is, as far
as I know, why strings are represented as lists and characters as integers.
Peter
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users