[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [FUN] A bit of code golfing
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 30 Sep 2016 21:42:47 +0200
2016-09-30 20:52 GMT+02:00 Egor Skriptunoff <egor.skriptunoff@gmail.com>:
>
> "s:sub(k,0)" and "s:sub(0,k)" are always empty strings for any s and k
> Zero index always "kills" the substring.
> This property is quite understandable for beginners, descriptive and
> memorable.
It always saddens me when an experienced member of the list
gets carried away with an intellectually beautiful idea that
(a) would break existing programs in a hard-to-debug way;
(b) has no chance of actually making it into official Lua.
Of course, it saddens me most when that person is myself :-)