-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alias problem #1
Comments
In .NET's LINQ |
I think this falls into a linter concern. Certainly seeing mixed use of Note that we have other aliases already in the language:
(That's not including the aliases from the |
To be fair tho, in the first case, that’s because the protocol requires all three of keys/values/entries; in the second two, that’s because the right/left variants were impossible to remove, and ended up effectively deprecated, in annex b. I don’t think any of those three serves as precedent for this proposal. |
Maybe only add |
Annex B doesn't mean deprecated.
That's another possibility, but it doesn't help with |
With both |
And when reading, when there's no autocomplete list? Or people who just use and editor and not and IDE (like me)? |
Annex B means many potential things; absolutely one of them is “deprecated”. |
I love the idea of a The One potential issue I see with As an aside, if we add |
yeah, I also thought about |
I know what |
For example in LINQ (C#) |
Yah, the C# one was mentioned in #1 (comment). But Java? I'm not aware of a similarly named method. And I know nothing about LISP. |
I really like this idea. So I've added it to one of my packages jsmodern for TypeScript users ( |
Just popping in to register my dislike of an alias. I'm in favor of |
TC39 decided to reject (🥁) creating an alias, so we will not be getting a |
So this whole proposal can be closed then? Unless |
No, TC39 is considering "making filtering easier", which means looking at the inverse function ( |
While I agree that the
filter
method is very confusing, a thing I would hate more is having aliases.Array.prototype.filter
will most likely not be removed/deprecated whenselect
will make its way into JavaScript. Which will mean we will have 2 1:1 methods. My 2 cents are that I support this proposal only if it will ensure that programmers wont have to choose betweenfilter
andselect
.The text was updated successfully, but these errors were encountered: