Names with trailing question mark

Jacob Carlborg doob at me.com
Tue Oct 4 07:04:36 PDT 2011


On 2011-10-04 16:03, Jacob Carlborg wrote:
> On 2011-10-04 12:12, Christophe wrote:
>>
>> I don't really like this idea. D has limitations to accepted symbol that
>> are strict, but handy in many cases. Accepting strange character in a
>> method name can lead to parsing ambiguities and I like the way D enforce
>> non-ambiguous code. I understand why we can think that the question mark
>> is nicer than an auxilliary in this case, but where to draw the line?
>> The question mark already lead to a (small) parsing ambiguity.
>
> Yeah, that's what I was thinking. If we allow "name?" should we allow
> "name!" as well (as Ruby does). Is there anything else we should allow?
> Allow everything?
>
> I was thinking something like that.
>

Just realized I thought this post was in a different thread.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list