So, single line are joined with previous lines, starting from
most indeted lines. So after first step we get:
foo foo
foo foo 1
And now there should be nothing strange about this.
Thanks, Waldek. That was helpful for me. (But still, I somehow hate pile
mode.) I don't know why, but somehow python pile mode feels a bit
better. (Maybe, I haven't programmed enough in python to be a good judge.)
However, the real point of my message is that trying
to enforce "good style" by language restrictions is
pointless, rules may easily lead to worse code
(after all, one motivation for pile rules were to force
consistent indentation, but in appropriate circumstances
they force quite unintitve indentation pattern).
What bothers me are lines like this
Foo(T: LongType,
U: OtherLongType,
Z: ThirdLongType): ...
If I am not completely wrong then the above should work, because of the
"(". But otherwise code has to be written like
Foo(T: LongType,
U: OtherLongType,
Z: ThirdLongType): ...
In order to join oneliners according to rules.
But that looks ugly.
Ralf
https://github.com/hemmecke/fricas-svn/blob/master/src/algebra/expr.spad.pamphlet#L598
patternMatch(x:%, p:Pattern Float,
l:PatternMatchResult(Float, %)) ==
patternMatch(x@Rep, p,
l pretend PatternMatchResult(Float, Rep),
kfltmatch
)$PatternMatchPolynomialCategory(Float,
IndexedExponents K, K, R, Rep)
pretend PatternMatchResult(Float, %)
--
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.