[Update 2015-02-15] Newer version of this blog post: “Classes in ECMAScript 6 (final semantics)” During the July 2012 meeting of TC39 [1], classes have been accepted for ECMAScript 6, the upcoming version of the JavaScript language standard. This blog post explains how those classes work. It is based on Allen Wirfs-Brock’s annotated slides. Overview An ECMAScript 6 class is syntactic sugar for a c
Updates: 2012-06-28: Restructured much of the content, to make it easier to digest. 2012-06-27: New section “More information on Servo”. Recently, Mozilla stopped the Electrolysis project [1] that was to give Firefox per-tab processes. Hence, I was relieved when David Bruant pointed out to me that Mozilla haven’t given up on a parallel browser. They are working on a project called Servo which is b
Update 2012-02-24: New content in sections 2.1. Function-scoped variables 2.2. Inadvertent sharing via a closure 2.7. for...in is weird JavaScript has many pitfalls. This post examines whether they make JavaScript “unfixable” as a language – as some argue. To do so, it separates the pitfalls into two categories: The ones that become harmless after learning about them and the ones that don’t. We’ll
JavaScript is Spartan when it comes to built-in data structures. One commonly uses objects as maps from strings to values. This post points out three pitfalls when doing so. Pitfall 1: inheritance and reading properties When it comes to reading properties, there are two kinds of methods in JavaScript. On one hand, methods that access the whole prototype chain of an object and thus “see” inherited
Update 2012-03-13: Added a section on installation. Paul Miller’s es6-shim gives you functionality that will be in ECMAScript 6 (code-named ECMAScript.next), on ECMAScript 5 engines. It was initially based on a project of mine, but adds much new functionality, Node.js compatibility, and (not least) tests. Highlights The following are a few highlights. Take a look at the tests to get more usage exa
Today, it has finally happened: At the GOTO conference, Google has officially presented its new programming language, Dart. This post gives an overview of Dart and provides a few comments on how it fits into the current programming language landscape. Information on Dart This post is based on the following sources on Dart: Dart home page Dart on Google Code Live transcript of the Dart presentation
In ECMAScript 6, template strings [1] are a syntactic construct that facilitates the implementation of embedded domain-specific languages (DSLs) in JavaScript. They were originally called “quasi-literals”. This blog post explains how they work. Warning: This blog post is slightly outdated. The terminology has changed: Template literal (was: template string): `abc` Tagged template (was: tagged temp
Updates: New post 2011-10-10: “Google Dart – overview and comments” (with all the information from the official Dart launch at the GOTO conference) New post 2011-09-13: “Google’s Alex Russell on JavaScript versus Dart” 2011-09-14: Rewrote of the section “What does it all mean?” and added new material on universal virtual machines. Added Crockford quote under “Other voices on Dart”. Added a conclus
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く