Skip to content
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

Equivalent of Python's pass keyword? #59

Open
ipmcc opened this issue Oct 10, 2014 · 2 comments
Open

Equivalent of Python's pass keyword? #59

ipmcc opened this issue Oct 10, 2014 · 2 comments

Comments

@ipmcc
Copy link

ipmcc commented Oct 10, 2014

I'm not sure if this exists and I'm not finding it, or if it doesn't exist, but it seems like eero could use something that is the equivalent of pass in Python to denote an empty scope. Like:

implementation MyDelegate
    someDelegateMethodThatWeMustImplementButWantToBeEmpty: id inCaller
        // do nothing

Presently, this causes an "Ambiguous indentation" error.

@andyarvanitis
Copy link
Member

An indented semicolon does the trick:

implementation MyDelegate
    someDelegateMethodThatWeMustImplementButWantToBeEmpty: id inCaller
        ; // do nothing

It really should be stated more clearly in the docs, though, so leaving this open for now.

@ipmcc
Copy link
Author

ipmcc commented Oct 10, 2014

Might it also be worth adding a pass keyword to be arguably less cryptic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants