-
-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute inference for private functions #18895
Labels
Comments
hsteoh commented on 2014-10-02T03:38:30ZI agree with this. Private functions don't suffer from the same objections raised against adding inference to auto functions, so perhaps this is the way to go to increase the scope of attribute inference in D. |
bugzilla (@WalterBright) commented on 2015-08-12T03:15:06ZExample:
private void bar() { }
void foo() @safe {
bar();
}
should work. |
petar.p.kirov commented on 2015-08-12T09:47:35ZWalter, so you agree that private functions should get attribute inference, like auto retrning functions? |
code (@MartinNowak) commented on 2015-08-12T13:14:20ZIt would be a good step forward to less attribute clutter. |
petar.p.kirov commented on 2015-08-13T07:14:00ZYes, it would definitely be a step in the right direction. A lot more code will benefit from this because private functions are more common than auto-returning and also people tend to neglect putting attributes on private functions more than on public ones. |
petar.p.kirov commented on 2017-07-01T11:43:48Z*** Issue 16138 has been marked as a duplicate of this issue. *** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Daniel Nielsen reported this on 2014-10-02T03:22:56Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=13567
CC List
Description
The text was updated successfully, but these errors were encountered: