lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Spaghetti, macaroni or ravioli?
From
: Dirk Laurie <dirk.laurie@
...
>
Date
: Wed, 16 Aug 2017 11:49:44 +0200
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
or as
if condition
then call_my_routine()
else return
end
if condition
then call_my_routine()
else return
end
or not at all?
Follow-Ups
:
Re: Spaghetti, macaroni or ravioli?
,
Etiene Dalcol
Re: Spaghetti, macaroni or ravioli?
,
Frank Kastenholz
Re: Spaghetti, macaroni or ravioli?
,
Martin
Re: Spaghetti, macaroni or ravioli?
,
Enrico Colombini
Re: Spaghetti, macaroni or ravioli?
,
Oliver Kroth
Prev by Date:
Re: Bug report : A weak table reuse a string key that already free
Next by Date:
Re: Spaghetti, macaroni or ravioli?
Previous by thread:
Re: Bug report: string escapes can mess up terminal
Next by thread:
Re: Spaghetti, macaroni or ravioli?
Index(es):
Date
Thread