[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: how to annotate lua source-code to specify behaviour ?
- From: Daurnimator <quae@...>
- Date: Fri, 27 Mar 2015 11:12:02 +1100
On 27 March 2015 at 10:42, Valerio Schiavoni
<valerio.schiavoni@gmail.com> wrote:
> I'm not sure how this is relevant for my use-case, where the annotation
> should somehow guide/modify the runtime behaviour of the annotated entity
> (be it a table, a function, a variable, etc).
>
> best,
> valerio
Just pass your object through a function: the wonders of first class
functions! :)
For tables and strings the lack of required () make it quite pleasant to the eye