RFC: Deprecating the Module Operator

%u unknown at dontsay.com
Fri Jan 19 06:30:15 PST 2007


The current module operator, the ".", seems to be a bad choice,
because it is easily overseen and in conjunction with an accidentically
deleted character may result in bugs, that are hard to discover:
  var= o1*.o2;
vs.
  var= o1..o2;
vs.
  var=.o1.o2;
...

Moreover the module operator just seems to be syntax sugar, because
one needs not to write the name of the module.

OTOH if there is a need not to write the module name, then the well
known and more general file hierarchy navigation notation should be
used, where "//" denotes the root and "../" denotes direct ancestors.
--
Anonymity is not a Crime




More information about the Digitalmars-d mailing list