# requires Ruby 3.1 or newer# *** before: ***def point_old(x, y) { x: x, y: y }end# *** in version 3.1: ***def point(x, y) { x:, y: } # short for { x: x, y: y }endputs point(1, 2).inspect