Ruby 3.1 – Shorthand Hash Syntax

It's the time of year again, and with it comes a bundle of new Ruby 3.1 features getting approved and merged ahead of the December release.This series will be covering a few of the interesting ones I see going across the bug tracker. Have one you think is interesting? Send it my way on Twitter @keystonelemur or comment here.Shorthand Hash Syntax - First ImpressionsNow this, this is something I've wanted for a very long time. Shorthand Hash Syntax, also known as Punning in Javascript, is an incredibly useful feature that allows you to omit values where the variable name is the same as the key:.
Ruby 3.1 – Shorthand Hash Syntax #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/ruby-3-1-shorthand-hash-syntax

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles