lua-users home
lua-l archive

Re: Defining APIs, best practices.

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


> On 14/12/12 16:41, Thijs Schreijer wrote:
> And when writing an API from scratch, which one annoys the user the less?
Why not two functions, enable() and disable()?
Otherwise I prefer the version that makes sure you pass a boolean.
-- 
Pierre Chapuis

AltStyle によって変換されたページ (->オリジナル) /