rootsdev / gedcomx-js

JavaScript library for GEDCOM X
http://rootsdev.org/gedcomx-js/
MIT License
10 stars 1 forks source link

What method of object creation should we use? #1

Closed justincy closed 8 years ago

justincy commented 8 years ago

JavaScript has a few methods of creating objects:

I'm not a fan of ES6 classes for reasons explained in this opinionated piece but we won't run into those issues because our classes will mimic a hierarchy constructed in Java. The Java implementation will have to deal with any problems and we'll have to react to them. Thus we could use ES6 and benefit from the syntactic sugar.

Regarding browser support, I don't care about IE.