toString issue
Johan Granberg
lijat.meREM at OVEgmail.com
Sat Sep 30 07:08:31 PDT 2006
Hasan Aljudy wrote:
>
>
> Vladimir Kulev wrote:
>> Johan Granberg wrote:
>>> PROPOSAL. change all methods in object to have some prefix for to string
>>> I suggest opString as the op prefix is already in use.
>>
>> I agree, and the same about toHash. Naming consistency is the right
>> thing.
>
> I totally disagree, what consistency are you talking about?
> toString and toHash are *not* operators, so prefixing them with op is
> misleading and inconsistent.
The prefix is not important the name collision issue is. The problem is
that two commonly used identifiers collide and the use of an op prefix
is one way to solve that (and would open up fore making them operator if
desired at some later time)
More information about the Digitalmars-d
mailing list