Method names

Andreas Raab raab at isgnw.CS.Uni-Magdeburg.De
Mon Nov 2 10:47:19 UTC 1998


Hi,

>  > 	aBitStream next: 40 bits
> 
> I thought the trailing no-op in the message selector was a nice idea.
[...]
> Also, the trailing no-op in the method-selector allows you to have a
> similar method you invoke like this:
> 
> 	aBitStream next: 40 bytes.

In this case, it's NOT a nop - it's part of the method's selector and that
is an entirely different issue. I agree that for readability it may be
nice to have a selector like "next:bits" instead of "nextBits:" but if you
really treat the "bits" as no information I don't see any added value - it
only makes parsing AND understanding the code harder (because you have to
know if "bits" is a selector or just a comment).

  Andreas
-- 
Linear algebra is your friend - Trigonometry is your enemy.
+===== Andreas Raab ============= (raab at isg.cs.uni-magdeburg.de) =====+
I Department of Simulation and Graphics      Phone: +49 391 671 8065  I
I University of Magdeburg, Germany           Fax:   +49 391 671 1164  I
+=============< http://isgwww.cs.uni-magdeburg.de/~raab >=============+





More information about the Squeak-dev mailing list