lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

siiky <> writes:

> // `d` for "destructive"

Swift has a nice convention where '-ing' signals non-destructive
operations.  For example, 'object.append(...)' mutates the object
whereas 'object.appending(...)' returns a new object.

"Programming reliably -- must be an activity of an undeniably
mathematical nature […] You see, mathematics is about thinking, and
doing mathematics is always trying to think as well as possible."
-- Edsger W. Dijkstra, 1981

Rudolf Adamkovič <> [he/him]
Studenohorská 25
84103 Bratislava