lua-users home
lua-l archive

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


I use Vim fold markers, so I'll have something like `function() -- {{{ anonymous: description here` and at the end of the function, `end -- }}}`, which means that I have both a marker for when a block ends as well as for when Vim should stop folding (which is kinda like "collapsing" for normal editors but a tad bit more powerful).

On Tue, May 8, 2018 at 7:05 AM Soni "They/Them" L. <fakedme@gmail.com> wrote:


On 2018-05-08 05:11 AM, Dirk Laurie wrote:
> When the right-hand side of an assignment is an anonymous function, I
> nowadays put a semicolon after the final "end" to distinguish it from
> other uses of  'end'. Do you like the idea or hate it?
>

I only use semicolons when calling anonymous functions, e.g.
;(function() end)()

--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.


--
--
Ryan | Charles <vandor2012@gmail.com>
Software Developer / System Administrator
https://hashbang.sh
https://getmediapanel.com