May 02, 2004
When the 'with' is used, I feel (quite strongly) that the '.' should be in front of the member reference.

Here are three very good reasons.

1. It indicates 'member of' to the reader of the code. This shows the intention of the programmer, and is very important to ease code maintenance.

2. Searching (intra file and across files) for the member references in code is so much easier. Looking for ".x" rather than "x" reduces false positive search results.

3. For, hopefully, future auto-complete/intellisense editors, the dot gives a big boost and will allow for a auto-show list of members.

TRex





May 02, 2004
TRex wrote:

> When the 'with' is used, I feel (quite strongly) that the '.' should be in
> front of the member reference.

There are already several threads on this issue, even in this very new newsgroup.  One such is here:

news://news.digitalmars.com:119/c706ro$5s9$1@digitaldaemon.com

Or, if you prefer the web based reader:

http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/178

-[Unknown]