-----Original Message-----
From: "Mike Nelson" <mikestar1313@gmail.com>
To: "Lua mailing list" <lua-l@lists.lua.org>
Date: 04-05-2014 01:22
Subject: Re: number, math, and metatable? [RANT]
On 5/3/2014 11:31 AM, Tim Hill wrote:
local limtied = max(min(input, 1000), 100))
->
local limtied = input : min(1000) : max(100)
Well, I for one would consider that a Con argument, not a Pro. I think most developers regardless of background could read the first example easily. The second would involve considerably more thought. So why is the second form better?
-Tim
Tim, Tim,
You just don't get it--Thomas is trying to turn Lua into Smalltalk, I've tried to turn Lua into Ruby (mostly off list, missed so many opportunities to pester the list!), other individuals have tried to turn Lua into Python, Lisp, Haskell, etc. I may have overlooked some examples.
I don't want to turn Lua into anything, I haven't even made a "[proposal]" yet.
I don't even know Smalltalk BTW, but I have some bad news for you,
local limited = input : min(1000) : max(100) is absolutely legal Lua code (consider input to be a table with functions min and max as fields).
--
Thomas