Changes in new versions / Ruby 3.1

# 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 }
end

puts point(12).inspect