----boundary-LibPST-iamunique-1975042579_-_-
Content-type: text/plain
> Another question: IN the style guide we are told not to write a
semi-colon, if not necessary.
>
> For example:
>
> IF a = b THEN
> Do1;
> Do2;
> Do3
> END;
>
> I've been thinking about this for a while now, and I think this is really
questionable for 2 reasons:
>
> 1) Following the KSS-rule (Keep it simple and stupid), it is more simple
to always write statements the same way, if that is possible. It IS possible
to write the semicolon after Do3, there is no different behavior involved,
and if you have to think of omitting the semicolon, this affords additional
(unnecessary) thought when writing code.
>
> 2) If you decide to add a Do4 in the above, right before the END, you have
to insert a semicolon after the Do3 (which is a line that you would not need
to touch at all!!) and then enter the Do4. So every time you write a new
line, you have to look if there already is a semicolon (which is bad code
according to the style guide) or if there is none.
>
> So why is this recommended? I think it is as useless as were the excessive
BEGINs and ENDs in ancient Pascal.
>
> Any ideas?
Hello René,
Yes, I agree completely with your analysis. For many years now, I've been
using semicolons like that, and I can say it's a lot easier.
Regards.
Gérard
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-1975042579_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjN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