(I do not know, which rule is better).
I haven't invented the indentation rules in SPAD. And in fact, I'd be
happy to get rid of this indentation style. But that's a personal opinion.
g = f 1 a
where f = (+)
a = 2
Shouldn't work for spad for the same reason as you first example.
g = f 1 a
where
f = (+)
a = 2
This shouldn't work because it would be same as
{where; f = (+); a = 2}
which is clearly wrong in spad.
g = f 1 a where {f = (+); a = 2}
In Spad you would write:
g = f 1 a where
f = (+)
a = 2
Ralf
PS: Of course you would have to use == or := instead of just = in spad.
--
You received this message because you are subscribed to the Google Groups "FriCAS -
computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.