On 1/7/11 1:39 PM, Peter Van Roy wrote:
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.


sure, it's still less verbose than, say, '\a' in c.

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
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to