getify / JSON.minify

Simple minifier for JSON to remove comments and whitespace
http://web.archive.org/web/20100629021329/http://blog.getify.com/2010/06/json-comments/
410 stars 102 forks source link

`from` is a keyword in ES6 #29

Closed pradyunsg closed 9 years ago

pradyunsg commented 9 years ago

From https://github.com/lukehoban/es6features#modules

// app.js
import * as math from "lib/math";
alert("2π = " + math.sum(math.pi, math.pi));

It is currently used as a variable name in javascript and node code and the variable should be renamed.

getify commented 9 years ago

This is not an issue because the from keyword is only contextual in an import statement. It's perfectly safe to use outside of import statements.

pradyunsg commented 9 years ago

Ooh, OK.

new thing learnt