[ruby-core:120967] [Ruby master Feature#21082] Alias it to its
From:
"matz (Yukihiro Matsumoto) via ruby-core" <ruby-core@...>
Date:
2025-02-13 06:44:58 UTC
List:
ruby-core #120967
Issue #21082 has been updated by matz (Yukihiro Matsumoto).
Status changed from Open to Rejected
Some people want to make Ruby more English-like, but I don't agree with that direction.
Matz.
----------------------------------------
Feature #21082: Alias it to its
https://bugs.ruby-lang.org/issues/21082#change-111866
* Author: northeastprince (Matt Almeida)
* Status: Rejected
----------------------------------------
One of Ruby's core tenants is beautiful code - and a key part of that is sweating the names. Adding `it` as a pointer to the first block parameter was a huge step forward in that regard, but we're not done yet. If `[1, 2, 3].each { puts it }` works, `posts.each { puts its.title }` should work too.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/