Skip to content

DataType refactoring #2992

Closed
Closed

Description

@mickhansen

We need to streamine how data types are defined, used and checked.
Currently we have a mixmatch of custom getters etc.

I propose that all data types become functions with prototypes so it's easy to do instanceof type.
This would obviously not work with DataTypes.STRING since it's not invoked but i propose that on define and createTable etc we just do something like typeof type === "function" ? new type()

@janmeier

Activity

  1. added
    type: refactor
    on Jan 23, 2015
  2. mickhansen commented on Feb 10, 2015

    @mickhansen
    ContributorAuthor
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

    type: refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions