Kevin Gibbons
Kevin Gibbons
> Can you give an example of languages or libraries where this method is implemented the other way around? [Swift](https://developer.apple.com/documentation/swift/array/3017524-partition), but it's the only one I know of. `true`-first is...
@dartess It's common for functions like this in languages which aren't functional to mutate rather than returning new lists. (See e.g. `std::partition` in C++.) It should be understood as being...
@rbuckton for the question of how to handle use cases which want to avoid stringification, see https://github.com/tc39/proposal-array-grouping/issues/3.
That said, I believe you can have an overload which specifically works for the `partition` use case [mentioned above](https://github.com/tc39/proposal-array-grouping/issues/9#issuecomment-896691901): ```js declare function groupBy(values: T[], predicate: (value: T) => value is...
@rbuckton Those comments seem like they belong in #3, rather than this thread.
Neat! I'll play around with this next time I need to tweak the grammar linting process.
Evaluation and Early Errors I semi-intentionally excluded, but HasCallInTailPosition is just an oversight. MV, SV, TV, and TRV are also excluded, in this case because they're not really treated like...
The rationalization for excluding Evaluation is that it isn't really the same kind of SDO as others - it's, in some sense, the "top level program" rather than being a...
The behavior of the compatibility semantics (as I understand it) is as follows: When a function body is instantiated, it looks for functions declared in blocks inside of the body...
@sokra As @michaelficarra says, there are indeed two variables. You can compare against shift-scope, for example, by pasting his snippet [here](http://shift-ast.org/scope.html), or read the spec: the outer binding is created...