lua-users home
lua-l archive

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


On 08/16/2017 10:49 AM, Dirk Laurie wrote:
> Suppose your program has some very short actions in an if.
> 
> if condition then call_my_routine() else return end
> 
> Do you indent it as:
> 
> if condition then
>    call_my_routine()
> else
>    return
> end
> > [...]

I always start any statement from clean line.

local obj = {
  dummy = function() end,
  get = function(self)
    return self.dummy
  end,
}

-- Martin