Thread overview | ||||||
---|---|---|---|---|---|---|
|
February 20, 2013 [phobos] Eliminate -property from Phobos build? | ||||
---|---|---|---|---|
| ||||
Attachments:
| Currently -property in the Phobos build is a net liability because it forces us to append "()" all over the place, at a time when general agreement has been reached that trailing parens will be optional. Shall we remove -property for now? Andrei |
February 20, 2013 Re: [phobos] Eliminate -property from Phobos build? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Wednesday, February 20, 2013 08:28:53 Andrei Alexandrescu wrote: > Currently -property in the Phobos build is a net liability because it forces us to append "()" all over the place, at a time when general agreement has been reached that trailing parens will be optional. > > Shall we remove -property for now? If we're sure that we're going to keep parenless funtion calls (as unfortunately seem to be the consensus), then there's no point in using -property in its current state. Depending on what we do with properties and @property, we may or may not want a flag to test the change in behavior later, in which case, -property could be changed to do that, but unless/until that happens, there's no point in using -property. - Jonathan M Davis _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
February 20, 2013 Re: [phobos] Eliminate -property from Phobos build? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Wed, Feb 20, 2013 at 7:28 AM, Andrei Alexandrescu <andrei@erdani.com> wrote: > Currently -property in the Phobos build is a net liability because it forces us to append "()" all over the place, at a time when general agreement has been reached that trailing parens will be optional. > > Shall we remove -property for now? I'd rather make it a no-op in DMD first. As long as `-property` is in the compiler, people will complain if their Phobos client code doesn't compile with it. David _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
February 20, 2013 Re: [phobos] Eliminate -property from Phobos build? | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | 20-Feb-2013 23:18, David Nadlinger пишет: > On Wed, Feb 20, 2013 at 7:28 AM, Andrei Alexandrescu <andrei@erdani.com> wrote: >> Currently -property in the Phobos build is a net liability because it forces >> us to append "()" all over the place, at a time when general agreement has >> been reached that trailing parens will be optional. >> >> Shall we remove -property for now? > I'd rather make it a no-op in DMD first. As long as `-property` is in > the compiler, people will complain if their Phobos client code doesn't > compile with it. +1 And I've seen people insisting on and enforcing -property in its current broken state. Plus some kind of anouncement on where we are actually _plaining_ to go w.r.t. -property & @property won't hurt. Even vague statements like "we are plaining sometime soon to switch properties to what's outlined in DIP23 +- some amendments" is better then sheer vacuum. -- Dmitry Olshansky _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
Copyright © 1999-2021 by the D Language Foundation