lua-users home
lua-l archive

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


On 5/4/2014 3:20 AM, Thomas Jericke wrote:



-----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:
 

On May 3, 2014, at 2:38 AM, Thomas Jericke <tjericke@indel.ch> 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
Thomas,

    I was really angry about the trend in general in recent posts, but I shouldn't have singled you out and attributed motivations to you which were not apparent in your writing. I sincerely apologize.

-- Mike