by woodruffw · 4y ago · 0 comments
key, value ?= item.split("=", 1)
Modulo bike shedding over the actual syntax, of course.(Edit: the semantics of this could be even more generic, like Ruby's `[...] rescue value` syntax for turning any raised exception into a default value instead.)