oz

Opinions on the Mozart/Oz programming language?

http://www.mozart-oz.org/ Yes I realize that Oz is a fairly obscure language. I first heard about it in the Programming Language Shootout. Then I found this Wikipedia article which states Mozart/Oz to support eight different paradigms. So I gave it a try. There were plenty of documentation, except that I found it very confusing and la...

How do I create a list in Oz?

I'm trying to create a list in Oz using the following code: local Loop10 Xs in proc {Loop10 I} Xs={List.append Xs I} if I == 10 then skip else {Browse I} {Loop10 I+1} end {Browse Xs} end {Loop10 0} end The Mozart compiler shows that the code is accepted, but no Browse window opens up. All ...

How do I convert an integer to a list and vice versa in Oz?

How do I convert an integer to a list and back in Oz? I need to take a number like 321 and reverse it into 123. The Reverse function in Oz only works on lists so I want to convert 321 to [3 2 1], reverse it, and convert [1 2 3] back to 123. Can this be done in Oz? ...

Tail-recursion optimization in Oz

In the chapter about function in the Oz tutorial, it says that: similar to lazy functional languages Oz allows certain forms of tail-recursion optimizations that are not found in certain strict functional languages including Standard ML, Scheme, and the concurrent functional language Erlang. However, standard function d...

Convert list to a string in Oz?

How to convert a list to a string in Oz? I have a list of characters I need to convert to a string and I didn't see any concatenation operator in the Oz documentation. ...

andthen Oz keyword

I'm trying to write a tokenizer, but I'm getting a parse error: %*************************** parse error ************************ %** %** syntax error, unexpected T_DEFAULT, expecting T_then %** %** in file "/Users/xxx/Programmering/Oz/Oving1/Oz_oving1_task8.oz", line 15, column 36 %** ------------------ rejected (1 error) Here's the...