Re: Please rename 'but' to 'has'.

2002-04-21 Thread Trey Harris
In a message dated Sat, 20 Apr 2002, Daniel S. Wilkerson writes: > It is one of the standard refactoring tricks to replace the second one > with the first. The word "has" is in the positive, whereas "but" is a > negative, but it assigns a positive, even more confusing. "but" isn't a negative, no

Re: Please rename 'but' to 'has'.

2002-04-21 Thread Luke Palmer
On Sat, 20 Apr 2002, Daniel S. Wilkerson wrote: > Everyone I've ever talked to about it agrees that defining things to be a > negative is just a bad idea. Consider: > > if (gronk) do_this(); > else do_that(); > > versus > > if (not_gronk) do_that(); > else do_this(); But look how well C read

Re: Please rename 'but' to 'has'.

2002-04-21 Thread Luke Palmer
On Fri, 19 Apr 2002, Daniel S. Wilkerson wrote: > Please don't use 'but' to associate runtime properties to things. > Please call it 'has'. How about both? Luke

Re: Please rename 'but' to 'has'.

2002-04-21 Thread Daniel S. Wilkerson
Everyone I've ever talked to about it agrees that defining things to be a negative is just a bad idea. Consider: if (gronk) do_this(); else do_that(); versus if (not_gronk) do_that(); else do_this(); It is one of the standard refactoring tricks to replace the second one with the first. The w