Closed AndyScott77 closed 9 years ago
It's just part of the ES2015 specification -- all browsers will support this syntax eventually.
While that maybe the case, you should make this clear that the example will only run in Gecko. I'm assuming the audience you're targeting aren't people that know the full 'ins & outs' of the different rendering engines?
I totally agree with NET4ORCE. Your exemples are not clear enough and not documented/sourced. Some of them are just "your opinion" and absolutly not good practices.
Overestimated !
@bendc While much of your guide does indeed cover best practices, and please understand I admire you & your efforts for writing the guidelines, you must have noted that more and more of the issues raised by others have cited "preference" or "opinion". Do you not think it's worth indicating such through the guide?
Please note, and appreciate the guide been linked out via a number of large content aggregators; there will be a significant number of developers that won't consider the points raised by others.
I think many devs would understand the Lamda syntax you're using for your JavaScript examples; such as :
But ...
And I believe only the Gecko (Firefox) engine support them; I know the current Chrome I use (40.0.2214.115) doesn't support this Lamda syntax - I do wish they all would tho!
Regardless, it might be a source of confusion for readers - especially ones that might try to understand the example by running it.