1
dUcKtYpEd
18d

javascript is just my favorite thing to work with but man i really need private properties and interfaces and I need them natively, not some subset typescript BS.

Comments
  • 0
    Here is a private 'property' (variable):

    var whatisprivate = (function() { var priv = 'nomore'; return () => 'babydonthurtme'; });

    And an interface that you could test for property existence and signature conformance:

    var interface = {
    test: function(a,b) { ... }
    };
  • 0
    @webketje absolutely the fuck not haha
Add Comment