DIP10005: Dependency-Carrying Declarations is now available for community feedback

Chris Wright via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 28 18:47:07 PST 2016


On Wed, 28 Dec 2016 15:48:46 +0000, deadalnix wrote:

> On Saturday, 24 December 2016 at 15:44:18 UTC, Andrei Alexandrescu
> wrote:
>>> A compiler enhancement can do this _without_ a language change.
>>
>> The language addition has additional benefits as described by DIP1005.
>> -- Andrei
> 
> Yes, question is, are these specific benefits worth adding a language
> change ?

And the associated detriments. Just imagine opening up phobos and seeing:

  // 1200 lines of code
  with (import foo)
  {
    // 300 lines of declarations...
    with (import bar)
    {
      // 250 lines of additional declarations...
    }
  }

All mixed in with structs and functions and conditional compilation, so 
you have a sea of curly braces to wade through and indentation is only a 
mild help.


More information about the Digitalmars-d mailing list