Rename identity to id
See original GitHub issueThe name is too long for such a frequently needed function IMO.
x => x
is shorter 😦
I would also consider renaming of arithmetic functions to make them more similar to R.add
.
R.identity
->R.id
R.subtract
->R.sub
R.multiply
->R.mul
R.divide
->R.div
In this way they will still pop up in search.
Of course I propose to alias current versions until 1.0.
Who feels the same?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:15 (13 by maintainers)
Top Results From Across the Web
Change name of Identity Column for all Entities - Stack Overflow
I am in the process of creating a domain model and would like to have a "BaseEntity" class with an "Id" property (and...
Read more >Renaming the Database Model of ASP.NET Core Identity
And here is how I would rename tables and columns of the identity model for Npgsql. Plus move it into a different schema...
Read more >How to change a Mailbox Id,Identity, Name
I would like to change that to be like the other mailboxes. How can I do this? Get-Mailbox -Identity admin | fl *name*,Id*....
Read more >Rename `id` to `identity` · Issue #122 · purescript ... - GitHub
Yeah, I think the idea was you could define identity = id and start updating / writing new code with identity at the...
Read more >Change the name of your iPhone - Apple Support
If you forgot your Apple ID password · If you forgot the passcode for ... Apple ID and iCloud ... Organize recordings ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I find
identity
more expressive, as a matter of personal opinion.id
is often used as “id” of an object, in this casewould feel like the “id” of the
ramda
object 😃👍 on
identity -> id
.But 👎 on the others. Everyone knows what operation will be performed by “subtract”. But “sub” could represent “substitute”, “subscript”, or others. And “div” might be an HTML node. While I can’t think of anything that might be confused with “mul”, I’d prefer the consistency of the full words. And again, anyone who reads “multiply” will surely understand what is meant.
And for those who want shorter names,
… or some other variant.