-
-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 4545 - Alias to members possible without 'this' instance
- Loading branch information
1 parent
86ecdab
commit eedb994
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eedb994There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will new lambda syntax be used in documentation?
auto mfp = function(C self, int i) => self.foo(i);is a bit shorter than
auto mfp = function(C self, int i) { return self.foo(i); };Looks like
auto mfp = (C self, int i) => self.foo(i);can't be used because it doesn't say is it a
functionor adelegate. We can't use these keywords instead ofautoso the shortest clear wayfunction mfp = (C self, int i) => self.foo(i);is invalid now.
eedb994There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yah, we should migrate docs to the new syntax.
eedb994There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope it will not replace string-lambda template syntax where the old one behaves better:
map!"a * a"look batter than
map!(a => a * a)By the way, filled Issue 7357 for the syntax proposed in my previous message.