WillFa said: That's what I said...
I know it is. I just disagree that it needed to be said.
WillFa said: I don't agree with your insinuation that it's "grandfathered". It was a deliberate choice and I've never read anything suggesting that if they had the choice to make all over again, they wouldn't make the same one. I don't think it's so exceptional when 95% of all Lua code I've read or written starts with it. (require "foo")
The table-literal calling shorthand came from SOL, Lua's predecessor. The semantics changed from "defining a record" to "calling a function with this table", but the syntax remained. http://www.lua.org/history.html
I can't find anything about the string-literal calling shorthand.
I'm not saying these things shouldn't exist, nor am I saying they shouldn't be taught. I'm saying the universal way should be taught first. And please; I never said foo{} and foo"" didn't work, I expressly didn't mention them. I wanted to solve the problem, and give a syntax that they can use anywhere.
WillFa said: You're fixing mistakes that aren't mistakes.
Same to you. :)
[EDIT] Just so you know, I only responded to your original point because you aimed it specifically at what I had said (or rather, hadn't said). I don't care if you say it or not, but don't make me look ignorant. I do a good enough job of that on my own :P
[EDIT] For the sake of the OP, this marks my last post on the subject. I think we both understand eachother at this point, and I don't like arguments :S |