[phobos] Time to get ready for the next release
Steve Schveighoffer
schveiguy at yahoo.com
Fri Apr 22 13:45:57 PDT 2011
Then give them both options. You can still do this with strict properties, you just have to name the functions something different.
-Steve
>________________________________
>From: David Simcha <dsimcha at gmail.com>
>To: Discuss the phobos library for D <phobos at puremagic.com>
>Sent: Friday, April 22, 2011 4:35 PM
>Subject: Re: [phobos] Time to get ready for the next release
>
>
>
>
>
>On Fri, Apr 22, 2011 at 4:28 PM, Steve Schveighoffer <schveiguy at yahoo.com> wrote:
>
>Unlike your example, writeln = "hello" is actually valid, correct code. That is, it's not utterly stupid, it's just utterly ugly (to you and me). If someone wants to call writeln that way because they like the "style", then that's their choice. I see no difference from what you propose.
>>
>>
>>
>>It's not about the compiler rejecting terrible code because it thinks the code is terrible, it's about the compiler rejecting terrible code because the library author thinks it's terrible. That is, the library author can decide how you should use their code, just like he decides which functions are private and public.
>>
>Right, but I don't want the power to control this. I don't want to be forced to decide such things for my users. I want my users to be able to do as they see fit.
>
>_______________________________________________
>phobos mailing list
>phobos at puremagic.com
>http://lists.puremagic.com/mailman/listinfo/phobos
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20110422/2dbc46cb/attachment-0001.html>
More information about the phobos
mailing list