lua-users home
lua-l archive

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


> string.part=string.sub
> string.grepl=string.gsub
> string.sub=nil
> string.gsub=nil
> print((("How hard is that?"):grepl("hard","easy")))
How easy is that?

2012/11/3 Egor Skriptunoff <egor.skriptunoff@gmail.com>:
> Similar names "gsub" and "sub" leads to mistakes for almost every Lua coder.
> I'd prefer them to be renamed to more univocal "grepl" and "part".
> And leave "sub" for "subtraction" :-)
>