Arc Forumnew | comments | leaders | submitlogin
4 points by akkartik 511 days ago | link | parent

A couple of other likely-crappy abstractions that I'd made long ago in similar vein:

once-only: execute arbitrary code but only the first time it's encountered.

init: like assign, but only if name isn't already bound. For arbitrary variables besides tables.

inittab: probably same as your proposal, just a different name. Even uses `or=` under the hood.