Created
September 25, 2015 02:23
-
-
Save dnasca/904a029fb5bfb73d40c3 to your computer and use it in GitHub Desktop.
class free oop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //class free oop | |
| function constructor(spec) { | |
| let {member} = spec, | |
| {other} = other_constructor(spec), | |
| method = function() { | |
| // member, other, method, spec | |
| }; | |
| return Object.freeze({ | |
| method, | |
| other | |
| }); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment