I like identity because it is fairly standard and will probably not conflict with as many other libraries that are currently in the ecosystem.
Amos King CEO Binary Noggin > On Jul 8, 2019, at 10:58, Paul Schoenfelder <paulschoenfel...@fastmail.com> > wrote: > > My two cents: use `identity`, or `id` if it absolutely must be ridiculously > concise, but keep it simple. In my opinion, functional programmers will > almost universally expect one of those two, and everyone else probably won't > care because the concept will be new to them. I can't say that I've found > myself missing the lack of a standard library `identity` function thus far, > but I can see the benefit in readability if we start seeing it replace usages > of anonymous functions that just return their argument. > > Paul > >> On Mon, Jul 8, 2019, at 11:44 AM, Alexey Nikitin wrote: >> Kotlin's `it` is not a function. It's a default argument >> https://kotlinlang.org/docs/reference/lambdas.html#it-implicit-name-of-a-single-parameter >> >> Please do not invent new names. It will only get worse >> >> понедельник, 8 июля 2019 г., 4:33:17 UTC+3 пользователь Rich Morin написал: >> > On Jul 2, 2019, at 02:23, Alexey Nikitin <tank...@gmail.com> wrote: >> > >> > Like Haskell's `id` or Clojure's `identity` or Ruby's `itself` >> >> In the spirit of bikeshedding, I'll submit that Clojure's `identity` >> takes up too much space for my taste. So, I prefer Haskell's `id` or >> perhaps Kotlin's `it`. >> >> -r >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "elixir-lang-core" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to elixir-lang-core+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elixir-lang-core/ea64c4f1-27e0-46e8-9e2a-c0cebc8a2728%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "elixir-lang-core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to elixir-lang-core+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/52d2c2bc-f15c-48c0-b904-673cad6af06a%40www.fastmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/E1FE9DDD-F148-4402-9DC7-D913F302B895%40binarynoggin.com. For more options, visit https://groups.google.com/d/optout.