lua-users home
lua-l archive

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

Am 21.08.2016 um 15:34 schröbte Rain Gloom:
Tbh if you feel like '#' is confusing and want warnings for when it pops
up, you can just implement a linter instead. The lua-parser module would be
a good start, it's super easy to use and comprehend its output. (it is
compatible with Metalua's AST)
Alternatively: just write a token based one :P

    luac5.3 -p -l -l file.lua | grep LEN

Remember that there are C API functions that use the same algorithm as the `#` operator, so you have to check C code as well. (And there is also `rawlen`.)