Discussion:
Anybody familiar with Miranda?
(too old to reply)
duke
2012-06-29 04:38:51 UTC
Permalink
[quote]
In Miranda, all operators (except for ++ -- ˆ and :, as will be seen in Chapter 3) associate to the left.[/quote]

Then 2 examples are given! I get this first one:

(4.0 / 5.0 * 6.0) is interpreted as ((4.0 / 5.0) * 6.0)
\_first_/

This one I don't get

(4.0 / 5.0 / 6.0 / 7.0) is interpreted as ((4.0 / 5.0) / 6.0) / 7.0)

Should there not be another parenthesis at the beginning? Like:

(((4.0 / 5.0) / 6.0) / 7.0)

to make sense of Miranda's interpretation?
Jussi Piitulainen
2012-06-29 06:37:43 UTC
Permalink
Post by duke
[quote]
In Miranda, all operators (except for ++ -- ˆ and :, as will be seen
in Chapter 3) associate to the left.[/quote]
(4.0 / 5.0 * 6.0) is interpreted as ((4.0 / 5.0) * 6.0)
\_first_/
This one I don't get
(4.0 / 5.0 / 6.0 / 7.0) is interpreted as ((4.0 / 5.0) / 6.0) / 7.0)
(((4.0 / 5.0) / 6.0) / 7.0)
to make sense of Miranda's interpretation?
Yes. An obvious typo.
duke
2012-06-29 13:34:51 UTC
Permalink
Post by Jussi Piitulainen
Yes. An obvious typo.
Thanks!! I thought so ....

Loading...