Created
November 2, 2011 20:13
-
-
Save tj/1334751 to your computer and use it in GitHub Desktop.
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
proxies? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@visionmedia What makes the language better for your use cases (and aesthetic sense, which I must add I highly respect) isn't the same thing as what makes the language better for the popular and important use cases. You don't have to use getters or proxies if you don't want to, but I'm surprised that you cannot see why some other peoples' code would be improved by using them.
.name
and.name()
is an implementation detail that should be hidden to allow proper duck typing. Should a function calledmax
really care if it's operating on a real array or a reactive array class? While it's possible to over-abstract things, the right amount of abstraction isn't always no abstraction.person.name()
. Using different syntax to access immutable and mutable properties is crazy, you'd have to either always useperson.get('name')
just in case, or remember if name is mutable or immutable today. I'm all for refactoring and find-and-replace, but this particular trivial change feels like a stupid chore and gets annoying fast.