<- vs =. Naming atoi().
libes at nbs-amrf.UUCP
libes at nbs-amrf.UUCP
Fri Jul 11 15:53:50 AEST 1986
Ok, so we blew it by omitting a left arrow from ASCII. How about
making the following legal:
a <- 3; /* assignment */
if (a = 3) ... /* test for equality */
Oh, sorry. Can't screw with C. D, maybe.
I'd also like to point out that we need a symbol to represent "to".
I really tired of seeing things like:
atoi();
foo_to_bar();
foo_2_bar();
Foo2Bar();
a2z();
and all the permutations of these (all of which I see in code).
Let's make a standard on how to name "x to y" functions. I'd opt
for something like
a->b()
where -> is a single character in the character set. (Hey, as long
as we're redesigning it for <- (not to mention all those
international characters)...)
Any better (god I hope so) suggestions. This is really a topic of
vital importance (as I had to write one of these stupid functions
this morning and I was in a quandary as how to name it).
Please do not mail to me. (I refuse to waste my time summarizing
responses on such a silly topic.)
Don Libes {seismo,umcp-cs}!nbs-amrf!libes
More information about the Comp.lang.c
mailing list