From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: SPARK - Bubble Sort on Rosetta Code
Date: Fri, 27 Aug 2010 10:04:00 +0200
Date: 2010-08-27T10:04:00+02:00 [thread overview]
Message-ID: <op.vh27cyzkule2fv@garhos> (raw)
In-Reply-To: fdf146c7-7500-4a2b-80c7-92fa6a7d41e0@l6g2000yqb.googlegroups.com
Le Fri, 27 Aug 2010 09:35:51 +0200, Phil Thornley
<phil.jpthornley@gmail.com> a écrit:
> But of the 11 rules for the last example, only two of them do not
> involve a proof function reference. If you have proof functions then
> you have to have proof rules for them.
Right
What about a comment to tell about ? Something like a separator line and a
“the comings are requirement for the aboves”.
If know this may look pedantic, but I feel this may really help.
>> “--# derives A from A;” may be clearer than “--# derives A from *;”
> My style is always to use '*' for self-dependency to give it a strong
> visual emphasis.
I should not have made this comment, was not important
In
--# assert I% = I
Why not add a tiny comment which explains I% stands for the previous value
of I ? Annotations language of SPARK is well designed in the large, and
mostly readable as-is without the need of comments to explain it. Except I
feel for this kind of notation which are not intuitive. I'm pretty sure it
is difficult to guess the meaning of the "%" here (moreover if you think
about the C's modulo operator which this "%" inevitably recalls).
--
* 3 lines of concise statements is readable, 10 pages of concise
statements is unreadable ;
* 3 lines of verbose statements may looks unuseful, 10 pages of verbose
statements will never looks too much pedantic
next prev parent reply other threads:[~2010-08-27 8:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-26 9:18 SPARK - Bubble Sort on Rosetta Code Phil Thornley
2010-08-26 21:40 ` Yannick Duchêne (Hibou57)
2010-08-27 4:28 ` Yannick Duchêne (Hibou57)
2010-08-27 7:35 ` Phil Thornley
2010-08-27 8:04 ` Yannick Duchêne (Hibou57) [this message]
2010-08-26 22:32 ` Simon Wright
2010-08-27 0:38 ` Yannick Duchêne (Hibou57)
2010-08-27 7:57 ` Phil Thornley
2010-08-27 9:02 ` Phil Thornley
2010-08-27 11:03 ` sjw
2010-08-27 12:03 ` Phil Thornley
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox