[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Should split be in Lua? (Was: Extracting list of items from line?
- From: Dirk Laurie <dpl@...>
- Date: Mon, 18 Apr 2011 12:07:01 +0200
On Mon, Apr 18, 2011 at 11:25:44AM +0200, steve donovan wrote:
>
> Well, split() is certainly not a standard Lua function - arguably it
> should be,
I would oppose that argument. It's a lazy solution in some special
(though admittedly common) cases, but using it delays the rate at
which you master Lua patterns.
I knew Python before I learnt Lua, but I'm trying hard to forget it.
It makes me walk around the block instead of taking the shortcut.
Problem --> Python solution
| |
V V
Lua solution <-- Python-to-Lua thinking
Dirk