-
Notifications
You must be signed in to change notification settings - Fork 55
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
Completion for "override function" #92
Comments
I very much want to have something like that as well. One issue with only allowing it on override is that you can't implement interface methods that way. Doesn't mean it shouldn't be supported though. :) |
Need some kind of support from Haxe for this as well. |
Up ? :) |
Wait, does this address the original issue? (code completion) |
No... |
Oh, I knew there was an issue for override generation somewhere.. No wonder I couldn't find it. x) |
Can we remove the "public" that is added ? By default, override should not increase the visibility of the method (in case we change it to private later) |
It only adds that if the overridden field is public too. |
It's still unnecessary, and in case the "public" is removed from the
original method declaration, it sill allows public access to all overridden
methods.
…On Fri, Jun 8, 2018 at 9:44 AM, Simon Krajewski ***@***.***> wrote:
It only adds that if the overridden field is public too.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#92 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA-bwAWY3WP4QrnZ_YL7uv9wVf0qt1jqks5t6itOgaJpZM4MN73s>
.
|
Uhm okay, I thought it would be a compiler error if we don't have the |
I am used to that behaviour, to me it just mean "inherit the access" |
I don't really like that Haxe feature to begin with... Visibility in classes defaulting to If there's really a demand for it (which I doubt at the moment), we could add a code style setting for this, but I'd still like public access to be explicit by default. Note that FlashDevelop, which this feature is copied from, adds |
override is override : it redefines the method without changing its
visibility.
regarding interface : implements is implicit since you don't need to tell
"implements" on each method, so the visibility needs to match.
Please remove the public, that's not because FlashDevelop is doing it wrong
that we should follow :D
…On Fri, Jun 8, 2018 at 9:56 AM, Jens Fischer ***@***.***> wrote:
I don't really like that Haxe feature to begin with... Visibility in
classes defaulting to private *except for overrides of public methods*
hurts readability / is confusing, in my opinion.
If there's really a demand for it (which I doubt at the moment), we could
add a code style setting for this, but I'd still like public access to be
explicit by default. Note that FlashDevelop, which this feature is copied
from, adds public as well.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#92 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA-bwHJeCb3ZPBsJFazYJ15r92kYS0pMks5t6i4TgaJpZM4MN73s>
.
|
I've added "haxe.codeGeneration": {
"functions": {
"field": {
"explicitPublic": true,
"explicitPrivate": true
}
}
}
The default value for both is |
Shows a list of overridable functions at
override |
oroverride function |
The text was updated successfully, but these errors were encountered: