Stage O ECMAScript proposal: Encapsulated Private State. By myself and @wycatshttps://gist.github.com/wycats/714a01ae7ff22bea7888 …
@jamiemhodge @awbjs I think @avdi is wrong here. There is value in being intentional about your public API.
-
-
@wycats@jamiemhodge@awbjs and even if I had, I'm pretty sure it wouldn't be the one you sound like you are arguing against! -
@avdi@jamiemhodge@awbjs Heh. Fair enough! I think Ruby is right to separate pub/priv and make promoting ergonomic. :) -
-
@wycats@avdi@awbjs avdi discourages using instance variables directly and instead using essentially http://this.foo everywhere. -
-
@jamiemhodge@avdi@awbjs Why are privates-via-closures superior to private slots that work via lexical lookup? -
-
@wycats@avdi@awbjs I follow this pattern in ruby. class methods shouldn't care whether the var is private: https://gist.github.com/jamiehodge/68389548d9a86febce89 … - 8 more replies
New conversation -
-
-
@wycats@jamiemhodge@awbjs I'm not sure I've even stated an opinion yet, let alone at enough length for you to call it wrong :-PThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats@jamiemhodge@awbjs ...so yeah, hope you find some value in the barewords video. But I don't think I want to discuss on Twitter :-)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
New conversation
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
