From: "northeastprince (Matt Almeida) via ruby-core" Date: 2025-01-22T00:13:00+00:00 Subject: [ruby-core:120756] [Ruby master Feature#21082] Alias it to its Issue #21082 has been updated by northeastprince (Matt Almeida). Hey Martin! Thanks for your input. It seems like there's a very small amount of core method names that would have such a level of linguistic dissonance based on the receiver. However, even something like `ledger.include? transaction` seems more adaptive than `it.title`, though that might just be me. Happy to let `it` sit for a while before any changes are considered ����. ---------------------------------------- Feature #21082: Alias it to its https://bugs.ruby-lang.org/issues/21082#change-111618 * Author: northeastprince (Matt Almeida) * Status: Open ---------------------------------------- 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/