Austin Cheney
Austin Cheney
@WebReflection That is still 20 lines versus a single method taking a single argument as input.
@rniwa That misses the point for the same reason as TreeWalker. I am proposing a single method that takes a single argument. There is no internal glue required. How that...
@WebReflection Yes, I still see boilerplate. And your example still requires a working knowledge of TreeWalker's internal API when your use case demonstrates use of `NodeFilter.SHOW_TEXT`. I did a global...
> So, when the boilerplate is literally 3 lines of code, how is this proposal worth it, when it'll just create yet another method nobody used or needed to date,...
I can start working an enhancement for the parser to include a PHP library. I have increased the documentation around the parser and given it a website at https://sparser.io I...
For the moment I am using a micro-utility to provide support for this: https://github.com/Unibeautify/parse-framework/blob/master/services.ts#L187-L205 But I could probably spin this out to be an external utility that accepts a callback.
As far as I am aware js-beautify supports a good deal of ES6, though it is challenging to say how much. The only way to gauge the degree of support...
Perhaps if there were a directory in the unit tests specifically for ES6 cases. The more unit tests there the better, and not for identifying current ES6 support, but for...
To get this started I use these files to test destructuring, which is a concept new to ES6. The files also contain a lot of code examples with minor ES6...
I am thinking it is this - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment For the best example search the page for `metadata`