mlhaufe / brevity

Brevity is a library that enables Feature-Oriented Programming (FOP) and solves the expression problem in a manner that makes data and operation declarations trivial to define and compose.
GNU Affero General Public License v3.0
1 stars 0 forks source link

Deprecate Array shorthand syntax #49

Closed mlhaufe closed 1 year ago

mlhaufe commented 1 year ago

With #46 or #48, should the Data shorthand syntax be deprecated?

before:

const Point3 = Data(['x', 'y', 'z'])

after:

const Point3 = Data({ x: {}, y: {}, z: {}})