You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-1016 #selector broken for no-argument initializers and functions
Issue Description:
Currently, using #selector requires parenthesis when referencing functions and methods with arguments, but disallows parentheses when referencing those without arguments.
I recommend that a set of empty parentheses be required for selecting functions and methods which do not have arguments as to be similar to the syntax of defining a function or method without arguments.
The text was updated successfully, but these errors were encountered:
The reason it's the way it is is because () would normally call the method, but you're not the first to suggest that in #selector that distinction isn't useful.
Additional Detail from JIRA
md5: b3aacfb51c42266e288c85da13eb4049
duplicates:
Issue Description:
Currently, using #selector requires parenthesis when referencing functions and methods with arguments, but disallows parentheses when referencing those without arguments.
I recommend that a set of empty parentheses be required for selecting functions and methods which do not have arguments as to be similar to the syntax of defining a function or method without arguments.
The text was updated successfully, but these errors were encountered: