Not your computer? Use a private browsing window to sign in. Learn more
Direct Proxiesとは Direct ProxiesってのはES6の機能の一つで、オブジェクトをラップして様々なタイミングで任意の処理を差し込めるというとっても夢広がリングな機能。 harmony:direct_proxies [ES Wiki] 例えば、プロパティのget/set時に処理を差し込むのはこんな感じ。 (Direct Proxiesは現状だとFirefoxでしか動かない。そして下記のコードは無駄にテンプレートリテラル使ってるのでFirefox 34以上じゃないと動かない) // Proxyを使って処理を書き換える対象のオブジェクト var target = { foo: 'bar' }; // Proxyを使ってtargetに対してhandlerを適用したproxyオブジェクトを得る var proxy = new Proxy(target, { // プロパティ読
ECMA, TC39 Meeting Notesを読むコミュニティです。 https://github.com/tc39/agendas https://github.com/tc39/tc39-notes ECMAScript/JavaScriptで提案されている仕様等を見ていくのを目的としています。 メンバーになる
V8にES6テンプレートリテラルが入ったらしいということで、 テンプレートリテラルが実装された - JS.next 先に入っているFirefox 34(現beta)で遊んでみた。 埋め込み変数は即時評価 埋め込み変数は即時評価なので、テンプレートリテラルが評価される時点で定義されない変数を埋め込みに使うとエラーになってしまう。 var name = 'Taro'; console.log(`Hello, ${name}.`); // 'Hello, Taro.' console.log(`Hello, ${hoge}.`); // ReferenceError: hoge is not defined' そうすると、Viewクラスのプロパティにテンプレートを持っていて任意のタイミングで呼ぶみたいなことができず、同じテンプレートでも使うところで毎回リテラルを書く必要がある*1。 // Vie
JavaScript, ECMA–262, TC39, and ECMAScript Transpilers Explained IntroductionWhat is JavaScript? There are many correct answers to this question, but I think the most modern, succinct, and accurate answer is that JavaScript is the implementation of the ECMAScript specification. JavaScript is similar to HTML and CSS in that they are all implementations of a very well-defined specification. I would
README.md Note: All source code in this repository is under the Unlicense. Proposal for SpiderMonkey AST representation for import and export statements The current AST format is both inconsistent and complicated. Esprima and Acorn have two different syntax trees for the same thing, and that currently heavily hinders inter-op between the two. Since the module syntax is stabilized, but I can tell t
We’ve been working on #1291 for a while to see how we could add support for ECMAScript 6 and JSX into ESLint. While we were investigating adding ES6 support, we were also getting a fair amount of requests to add JSX support. We soon realized that Facebook’s Esprima fork that supports both ES6 and JSX would be the easiest way to move forward. This left us with some questions about how to support ES
In this post I'm going to examine the case for (and perhaps against?) one of the new features coming in JavaScript ES6: the let keyword. let enables a new form of scoping not previously accessible generally to JS developers: block scoping. Function Scope Let's briefly review the basics of function scoping -- if you need more indepth coverage, check out my "You Don't Know JS: Scope & Closures" book
概要 待ち焦がれた人も多いことだろう。ES2015の一番の目玉機能とも言えるクラス構文が、ついにV8でサポートされた。 Class構文は、『関数(コンストラクタ)定義』+『.prototypeへのメソッド定義』の糖衣構文である。 JSで今まで様々に工夫されてきたクラスの書き方を、綺麗に統一してくれる可能性を秘めている。 クラスを作る 従来、Catクラスを作ろうとした場合このように書いてきた。 function Cat(name) { this.name = name } Cat.prototype.meow = function () { alert( this.name + 'はミャオと鳴きました' ) } しかしこの書き方だとどうしても、コンストラクタとメソッドの定義が分離されているため、クラスとしてまとまりがなく分かりづらく感じる。 メソッドが増えてきた時も、Cat.prototyp
SIMD stands for Single Instruction Multiple Data, and is the name for performing operations on multiple data elements together. For example, a SIMD add instruction can add multiple values, in parallel. SIMD is a very popular technique for accelerating computations in graphics, audio, codecs, physics simulation, cryptography, and many other domains. In addition to delivering performance, SIMD also
It looks like nothing was found at this location. Maybe try one of the links below or a search? Search for:
Statically typed JavaScript via Microsoft TypeScript, Facebook Flow and Google AtScript Update 2014-11-18: Facebook Flow has been released as open source. Its website is flowtype.org. The site mentions plans for Flow’s future. This blog post looks at three initiatives for adding static typing to JavaScript: Microsoft’s TypeScript, Facebook’s Flow and Google’s AtScript. Typing # Let’s first clarif
Erik Arvidsson GitHub: @arv Twitter: @ErikArvidsson Language Improvements to JavaScript leads to: Better code Easier to maintain Happier Developers! Three topics on how to improve your code: ES6 features Part of all browsers soon Your own language extensions Make it part of your own tool chain Angular 2.0 language extensions Part of the Angular tool chain ECMAScript 6 What's new in ES6? How will i
The committee behind ECMAScript wants a quicker release schedule to keep up with the pace of Web innovation The TC39 committee at EMCA International, responsible for developing the ECMAScript specification that provides the basis for JavaScript, is working on parallel versions of ECMAScript — versions 6 and 7. Committee member Jafar Husain, cross-team technical lead for UIs at Netflix, talked abou
On 9/30/14, 2:45 PM, Michał Wadas wrote: Bug in MooTools is not a reason to make any method of Array.prototype enumerable. I didn't say we need to make it enumerable. I said that given the current state of the web, a web browser cannot ship a non-enumerable method named "contains" on Array.prototype. The options, therefore, are: Make the method enumerable. Name the method something else. Don't shi
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く