Skip to content

Document property types on the right like methods. #787

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

Merged
merged 1 commit into from
Aug 7, 2015
Merged

Conversation

munificent
Copy link
Member

This keeps the property name nice and flush left so it's easy to find.

This keeps the property name nice and flush left so it's easy to find.
@sethladd
Copy link
Contributor

sethladd commented Aug 7, 2015

I'm a fan. In fact, I think we had this at one point.

The question is, does a property "return" a type, like a method/function does? Or is a property "a" type?

(just thinking about the semantics of the arrow. maybe it's not an issue.)

@munificent
Copy link
Member Author

I think the semantics make sense. The left side of the arrow is what you write to invoke it and the right side is what you get back. The only difference between a property and a method is there no parentheses.

@sethladd
Copy link
Contributor

sethladd commented Aug 7, 2015

lgtm

sethladd added a commit that referenced this pull request Aug 7, 2015
Document property types on the right like methods.
@sethladd sethladd merged commit 62ead6e into master Aug 7, 2015
@sethladd sethladd deleted the property-type branch August 7, 2015 22:22
@sethladd sethladd added the type-enhancement A request for a change that isn't a bug label Aug 7, 2015
@sethladd sethladd added this to the Branch milestone Aug 7, 2015
@sethladd sethladd modified the milestones: Branch, 0.5.0 Aug 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants