new DIP47: Outlining member functions of aggregates

Jos van Uden usenet at fwend.com
Sat Sep 7 12:39:33 PDT 2013


On 7-9-2013 20:39, Paolo Invernizzi wrote:
> On Saturday, 7 September 2013 at 17:28:42 UTC, Jos van Uden wrote:
>> On 7-9-2013 19:00, Walter Bright wrote:
>>> Outlining of member functions is the practice of placing the declaration of a member function in the struct/class/union, and placing the definition of it at global scope in the module or even in another module.
>>>
>>> http://wiki.dlang.org/DIP47
>>
>>
>> The problem is that it is optional, so when you're reading other people's
>> code you'll still have to deal with inline definitions, and you'll need
>> a decent editor (doesn't have to be an IDE, even basic editors like
>> notepad++ and editpad pro support code folding and function lists) to
>> easily read it.
>
> No pun intended, but having it as  _mandatory_ would be a little to much for people like me that don't like this proposal at all.
>
> - Paolo Invernizzi


Exactly, so we're adding a lot of code noise, while you still have to use
an editor for codes that don't outline, so you might as well just use an
smart editor in the first place.


More information about the Digitalmars-d mailing list