lua-users home
lua-l archive

Re: [Proposal] Please skip empty statements after return

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


On 2019年06月24日 4:45 p.m., Jim wrote:
On Mon, Jun 24, 2019 at 01:10:03AM -0300, Soni "They/Them" L. wrote:
> Consider these currently invalid programs: (they are not equivalent. that's
> intended.)
> > -- 1.lua
> function foo(x, y)
> ?????? if x then
> ?????????????? goto bye
> ?????? end
> ?????? return y
> ?????? ::bye::
> end
> > -- 2.lua
> ??function foo(y)
> ;; function bar(x)
> ;;;; if x then
> ;;;;;; print(y)
> ;;;; end
> ;;;; return x, y
> ;; end
> ;; return bar
> ??end
> > I wish the worked.
Maybe it has to do with the used encoding/formating ? :D
my email client replaced those with non-breaking spaces I guess. ignore that, they were plain spaces when I sent them. they aren't strictly needed tho.

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