Re: [PATCH] Change "refs/" references to symbolic constants

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Tuesday, February 20, 2007 - 6:26 am

Hi,

On Tue, 20 Feb 2007, Simon 'corecode' Schubert wrote:


There are no booleans in C.

Also, you just state that the construct is not common for _you_. It is 
really quite common in C. Why? Because it is a short way to say _exactly_ 
what you want. Like when you say "BTW" instead of "by the way". It is not 
only quicker to type, it is also quicker to read.


No, in plain English "!strcmp("nothing", u)" translates to "nothing 
compares to u.

In mathematics, which is the basis of computer languages, "not compare" 
means something completely different yet: "a" does not compare to "b" 
means that they cannot be compared at all, i.e. the statement "a<b" is 
neither true nor false.

So, we have -- as so often -- a case, where somebody says "it is obvious 
how this expression translates to English", but really, it is not. So, why 
not stay in the context, and interpret it like millions of programmers 
before us? Or do you want to start another Babel?

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/4] Add prefixcmp(), Junio C Hamano, (Tue Feb 20, 2:51 am)
[PATCH 2/4] Mechanical conversion to use prefixcmp(), Junio C Hamano, (Tue Feb 20, 2:53 am)
[PATCH 3/4] prefixcmp(): fix-up mechanical conversion., Junio C Hamano, (Tue Feb 20, 2:54 am)
[PATCH 4/4] prefixcmp(): fix-up leftover strncmp()., Junio C Hamano, (Tue Feb 20, 2:55 am)
Re: [PATCH 2/4] Mechanical conversion to use prefixcmp(), Junio C Hamano, (Tue Feb 20, 3:19 am)
Re: [PATCH 2/4] Mechanical conversion to use prefixcmp(), Johannes Schindelin, (Tue Feb 20, 4:53 am)
Re: [PATCH] Change &quot;refs/&quot; references to symbolic constants, Simon 'corecode' Sch ..., (Tue Feb 20, 5:24 am)
Re: [PATCH] Change "refs/" references to symbolic constants, Johannes Schindelin, (Tue Feb 20, 6:26 am)
Re: [PATCH 2/4] Mechanical conversion to use prefixcmp(), Junio C Hamano, (Tue Feb 20, 11:43 pm)
Re: [PATCH 2/4] Mechanical conversion to use prefixcmp(), Johannes Schindelin, (Wed Feb 21, 5:41 am)