lua-users home
lua-l archive

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


On Sun, 29 Apr 2012 12:06:04 +0900
Miles Bader <miles@gnu.org> wrote:

> Alexander Gladysh <agladysh@gmail.com> writes:
> >>>> o forced semicolons for statement termination (due to some
> >>>> statements requiring it)
> >
> > Still, seems to be not an aesthetically good idea to enforce
> > semicolons in formatter. Maybe detect that somehow and put only when
> > needed?
> 
> Indeed, and I'll bet _always_ emitting semi-colons will put off a lot
> of people from using a code formatter -- in _practice_ semi-colons are
> basically never needed, so their presence makes Lua code look pretty
> alien...
> 
> -miles

cat program.bak | sed -e 's/;\s*$//'

SteveT