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

Selectors Work #2

Merged
merged 5 commits into from
Aug 19, 2013
Merged

Selectors Work #2

merged 5 commits into from
Aug 19, 2013

Conversation

ultramiraculous
Copy link
Collaborator

No description provided.

@nolanw
Copy link
Owner

nolanw commented Aug 19, 2013

What determines whether you use dot syntax or method call syntax? I'm genuinely curious, not trying to be a dick. It feels like there's a pattern and I can't quite crack it.

@nolanw nolanw merged commit 49d8126 into nolanw:selectors Aug 19, 2013
@nolanw
Copy link
Owner

nolanw commented Aug 19, 2013

Have a commit bit!

@ultramiraculous
Copy link
Collaborator Author

Well the style I'm used to is basically [[object A] B].C, where only the last property is dot notation-d as opposed to object.A.B.C. To call method Z on B, you'd do [[object A].B Z]. After getting used to Scala, it's kinda not my favorite style, because Scala has parameter-less functions, so object.A.B.C style stuff is pretty common.

When I'm doing free-time work, it kinda turns into a whatever/whatever style I was recently using (ObjC/Scala/whatever). Usually I look at my code a bit harder for consistency with itself/the repo's code, but you kinda threw me off and moved up my schedule.

@nolanw
Copy link
Owner

nolanw commented Aug 19, 2013

Oh ok, I see the logic. I don't really care what style you use, I'll change whatever offends me as I see it :-)

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

Successfully merging this pull request may close these issues.

None yet

2 participants