Re: [BLACKBOX] Re [BLACKBOX] Seasons Greetings from Linuxland

From: [at]} <Rex>
Date: Tue, 28 Dec 2010 16:05:04 -0600

----boundary-LibPST-iamunique-338778373_-_-
Content-type: text/plain

At 05:05 AM 12/27/2010, Les May wrote:

>The code
>
>PROCEDURE IsDigit(ch: CHAR): BOOLEAN;
>BEGIN
> RETURN (ch <= '9') & (ch >= '0')
>END IsDigit;
>
>is regarded as good 'style'.
>
>Yet it suffers from the same problem as the C code above. To understand what the programmer intended the reader has to evaluate what follows the RETURN.


        I let this reply sit for a while, but I have to agree with what others have written.

        This looks like excellent style to me. I find it instantly comprehensible and unambiguous. Best of all, it's mercifully short. I use this kind of construction all the time.

        The fact that you have to evaluate a line of code to understand the intention is a tautology: that statement is true of ever line of code (and every sentence of natural language) ever written. Therefore I cannot construe it as a meaningful criticism.

Rex Couture


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-338778373_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEF0IDA1OjA1IEFNIDEyLzI3LzIwMTAsIExlcyBN
YXkgd3JvdGU6XHBhcg0KXHBhcg0KPlRoZSBjb2RlXHBhcg0KPlxwYXINCj5QUk9DRURVUkUgSXNE
aWdpdChj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mFs
IGxhbmd1YWdlKSBldmVyIHdyaXR0ZW4uICBUaGVyZWZvcmUgSSBjYW5ub3QgY29uc3RydWUgaXQg
YXMgYSBtZWFuaW5nZnVsIGNyaXRpY2lzbS5ccGFyDQpccGFyDQpSZXggQ291dHVyZSAgXHBhcg0K
XHBhcg0KXHBhcg0KLS0tLVxwYXINClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRo
IGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSH19ADA1
UFI=
----boundary-LibPST-iamunique-338778373_-_---
Received on Tue Dec 28 2010 - 23:05:04 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:20 UTC