[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua library api style recommendations
- From: Rudolf Adamkovič <salutis@...>
- Date: Sat, 06 May 2023 21:56:18 +0200
siiky <github-siiky@net-c.cat> 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.
Rudy
--
"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č <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia