[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: share a stupid typo bug of me :(
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sat, 3 Nov 2012 13:32:33 +0200
> 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" :-)
>