Does D have too many features?

SomeDude lovelydear at mailmetrash.com
Tue May 1 23:36:01 PDT 2012


On Tuesday, 1 May 2012 at 21:03:35 UTC, foobar wrote:
>
> vote++
>
> I like your POV that operators are useful shortcuts (syntax
> sugar) meant for the end user whereas library authors should use
> the full function names for generic code. IIRC C++'s STL does 
> the
> same - for instance the map::operator[] is a simple wrapper
> around map's functions.
>
> Is this included in D's style guide?

vote-------------

If something is a bad idea for a library, I don't see why it 
could be a good idea for the user code. After all, the standard 
library IS user code.
The fact that it's in a library or not doesn't change anything to 
the fact that your syntactic sugar is hiding a potential problem.


More information about the Digitalmars-d mailing list