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

Model, Binding and Lens — should they be constructors? #21

Open
Dremora opened this issue Sep 18, 2013 · 2 comments
Open

Model, Binding and Lens — should they be constructors? #21

Dremora opened this issue Sep 18, 2013 · 2 comments

Comments

@Dremora
Copy link
Contributor

Dremora commented Sep 18, 2013

In JavaScript, TitleCasedNames usually indicate a constructor — a function which should be called with a prefix new. Capital letter in the beginning also implies that the object can be extended (for instance, using class D extends C syntax in CoffeeScript). Violating this rule might cause confusion and prevent objects from being easily extendable. Bacon is following this convention, while Bacon.jQuery is not.

@raimohanska
Copy link
Contributor

You're right. Should be done.

-juha-

On 18.9.2013, at 4.33, Kirill Korolyov notifications@github.com wrote:

In JavaScript, TitleCasedNames usually indicate a constructor — a function which should be called with a prefix new. Capital letter in the beginning also implies that the object can be extended (for instance, using class D extends C syntax in CoffeeScript). Violating this rule might cause confusion and prevent objects from being easily extendable. Bacon is following this convention, while Bacon.jQuery is not.


Reply to this email directly or view it on GitHub.

@raimohanska
Copy link
Contributor

^ that was from mobile :)

So yes, that's a good idea and should probably be implemented. That was the original idea, but there was some technical difficulty with Model. Should re-check.

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

No branches or pull requests

2 participants