just an idea (!! operator)
Alex Rønne Petersen
alex at lycus.org
Wed Jul 11 06:45:00 PDT 2012
On 11-07-2012 15:42, Timon Gehr wrote:
> On 07/11/2012 01:33 PM, Alex Rønne Petersen wrote:
>> On 11-07-2012 13:18, akaz wrote:
>>> if needed, the operator !! (double exclamation mark) could be defined.
>>>
>>> it is just an idea, i do not have any specific use in mind.
>>>
>>> i encountered the operator in RT operating systems book:
>>>
>>> c!!e sends the message e along channel c
>>> c?x assigns to variable x the value from c
>>>
>>> maybe this could be integrated with the concurrency somehow or used in
>>> some other area.
>>
>> This is not something important enough to warrant a language feature in
>> my opinion. And certainly not one that results in a Phobos dependency.
>>
>
> Making the operator overloadable does not result in a Phobos dependency.
Yes, I know.
But we can't base the decision solely on this fact. Then we could add a
million operators to the language just because they seem neat.
--
Alex Rønne Petersen
alex at lycus.org
http://lycus.org
More information about the Digitalmars-d
mailing list