On 07/01/11 16:02, Wacek Kusnierczyk wrote:
On 1/7/11 3:04 AM, Peter Van Roy wrote:
On 07/01/2011 03:02, Lyle Kopnicky wrote:
It would be nice if characters were a separate datatype from
integers. It's an odd bit of weak typing.
It's not that odd: it has the advantage that all list operations are
also string operations.
if strings were lists of characters rather than lists of integers, all
list operations would still apply, no?
Yes, of course. But integers are not harder to use: just type &a for
the integer code of the letter a.
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.
Peter
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users