3 ms·
* no compile time I've been using vanilla JS when not using Reason and it is pretty nice. I hate that safari does not support arrow function methods though (as
by globuous 6y ago
* no compile time
I've been using vanilla JS when not using Reason and it is pretty nice. I hate that safari does not support arrow function methods though (as they allow you to not have to bind `this` in the constructor).
concerning you post scriptum in brackets, what I like with types is:
1. refactoring becomes simpler
2. understanding APIs becomes simpler
- Ennea 6y agoWhich version of Safari are you using? According to caniuse[0], arrow functions are supported in Safari starting with version 10, which is over four years old at this point. [0] https://www.caniuse.com/arrow-functions https://www.caniuse.com/arrow-functions
- inbx0 6y agoThey said "arrow function methods", so I assume they're looking for public class fields support [1], not only arrow functions support per se. Public class fields (apart from static fields) are also supported in Safari though since September. [1]: https://caniuse.com/mdn-javascript_classes_public_class_fields https://caniuse.com/mdn-javascript_classes_public_class_fiel...
- globuous 6y agoYes, that's exactly what I meant! Nice! Indeed, I had in mind a script I wrote just around that time and I guess the iPhone I was testing on was not fully updated. Just checked on my Safari on Big Sur and they do work now, sweet ! Should have tried / checked before commenting, thanks for the heads up ;)
- temporallobe 6y agoFat arrow functions are a core part of ES6. If your version of Safari doesn’t support these, I would argue it doesn’t support ES6.