Re:Lua: the world's most infuriating language?
by bonzaro on Friday October 18, 2013 @05:01PM
(#6573990)
Might I ask, how would you implement a ternary function that should retain the lazy evaluation quality of the syntactic ternary operator?
Re:Lua: the world's most infuriating language?
by justincormack on Friday October 18, 2013 @09:23AM
(#6571190)
I have started just using iterators for stuff that starts at 0.
What you consider a minor gripe, compound assignment operator, I personally think is a flaw in the language same goes for bitwise functions instead of operators. Here is an example I posted earlier on twitter.
object = object + other
"object" and "other" here are full userdata and the code is going to malloc a new userdata and also create a new object in C/C++; which is straight away going to over write the original instance. Huh? why? += makes so much sense.
Each to there own, I can fix my issues using patches but it would be nice if I did not have to.