Ruby 3.1 – Shorthand Hash Syntax
12-Sep-2021 1269
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 #Shorthand #Syntax https://rubyonrails.ba/link/ruby-3-1-shorthand-hash-syntax