Had another 48hr game jam this weekend...

Manu turkeyman at gmail.com
Sun Sep 1 07:36:59 PDT 2013


On 1 September 2013 20:22, Gary Willoughby <dev at nomad.so> wrote:

> On Sunday, 1 September 2013 at 02:05:51 UTC, Manu wrote:
>
>> We all wanted to ability to define class member functions outside the
>> class
>> definition:
>>   class MyClass
>>   {
>>     void method();
>>   }
>>
>>   void MyClass.method()
>>   {
>>     //...
>>   }
>>
>> It definitely cost us time simply trying to understand the class layout
>> visually (ie, when IDE support is barely available).
>> You don't need to see the function bodies in the class definition, you
>> want
>> to quickly see what a class has and does.
>>
>
> Uggh! I absolutely do not agree with this. You should rely on
> documentation or an IDE class overview for these things *not* alter the
> language. In lieu of IDE support just use ddoc comments for methods and
> properties and compile the documentation for each build.
>

I think that's unrealistic. People need to read the code in a variety of
places. Github commit logs (limited horizontal space), diff/merge clients,
office communication/chat tools.
If the code depends on an IDE to be readable, then that's gotta be
considered an epic fail!

Give me one advantage to defining methods inline? I only see disadvantages.
Lots of them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130902/6e44a3b6/attachment.html>


More information about the Digitalmars-d mailing list