Skip to content

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

Description

@Dremora

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions