dwyl / learn-redux

:boom: Comprehensive Notes for Learning (how to use) Redux to manage state in your Web/Mobile (React.js) Apps.
GNU General Public License v2.0
447 stars 42 forks source link

Why are we using ES2015 (ES6) Features that aren't supported in Chrome?!$%^@!! #5

Closed nelsonic closed 8 years ago

nelsonic commented 8 years ago

I've been waiting for default parameters for ages ... they are going to make JS code much easier/cleaner to write: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/default_parameters but people who use them in examples of front-end code are just being irresponsible:

es6-default-arguments-error-chrome

I'm using the latest version of Chrome:

chrome-version

Which does not have support for default parameters ...

default-parameters-javascript-compatibility

(only _Canary_ - the _Dev Build_ of Chrome - has support ...!!!)

So why are we showing beginners this feature? so they can trip themselves up and create errors...?

nelsonic commented 8 years ago

Get Chrome Canary: https://www.google.co.uk/chrome/browser/canary.html