Hacker Newsnew | comments | show | ask | jobs | submit | ax's comments login

Classes are in IE11 Technical Preview and, I believe, the latest versions of V8 as well.

-----


Ah, you're right. Chrome Dev has support for classes now. Good to know!

-----


I considered switching to sublime from vim just for sane line wrapping. If you have indents, vim forces you to hard wrap or else end up with an unreadable soup. Sublime, on the other hand, makes the sane choice of preserving indentation level when a line is wrapped. Sublime's setting makes editing large HTML files in a variable width window much more pleasant...

-----


Each function has its own this binding - the conceptual model for this is that its an implicit argument to every function call. There is no scope chain lookup for "this". Although, there is no way to observe any difference between your understanding of the semantics or the bind semantics (which is a valid desugarding AFAIK) so the distinction is mostly moot...

-----


Both let and const are supported in IE11 as well!

-----


I'm getting flashbacks to the VerizonMath Fiasco.

http://verizonmath.blogspot.com/2007/08/original-recording-o...

-----


Yahoo did and does have a spot at the table because they are a dues-paying member of ECMA. They have as much weight in the committee as any other member (MS, Google, Mozilla, now Facebook, etc.) Presumably Yahoo cares because they have millions of users running JS code.

-----


Also Douglas Crockford worked at Yahoo.

-----


I don't think "threw a fit" is an accurate description. More like, objected to many aspects for technical reasons. And, considering that TC-39 agreed at the Oslo meeting to pursue ES3.1 over ES4, presumably they had a pretty good argument. Brendan Eich's mail sent after the accord[1] has some detail.

1) https://mail.mozilla.org/pipermail/es-discuss/2008-August/00...

(Disclaimer: I work for MS).

-----


This is explicitly about getting more sites to work /without/ forcing older sites to update their stuff. Older sites have ifIE() checks that return true and serve IE old legacy IE-specific code. IE11 is more compatible with standards-compliant code than legacy IE-specific code so forcing existing sites to serve IE the same code as FF/Chrome results in more sites working in IE.

-----


I could be wrong, but at one point I calculated that the HD280s meet OSHA requirements for hearing protection for certain noise levels.

-----


I think BE is a fan of the max-min class proposal... At any rate, naming aside, ES6 classes are simple syntactic sugar for a very common pattern in JS development today. It makes sense to provide a syntactic sugar in this case that makes developer intention clear and reduces boilerplate.

TypeScript has (I believe) a mostly compatible implementation of these classes if you want to try them out in today's runtimes.

-----

More

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: