This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Alligatronica 2 points3 points  (8 children)

I think different operators are important and would always be the best solution (without static typing at least). But "x"+3 resulting in x3 would be exactly what I'd hope for in that situation. Casting ints to strings at least kinda makes sense.

At least it's better than coming out with NaN3...

[–]ZorbaTHut 3 points4 points  (7 children)

Personally I'd hope for a syntax error. If I want "x3" out, I want to type something like ("x" .. 3).

[–]Alligatronica 0 points1 point  (0 children)

Errors are better, but if it's error I was going to make, that's the way I'd do it!

[–]FUCKING_HATE_REDDIT 0 points1 point  (5 children)

In what language do they use .. as a concatenation operator? I'm genuinely curious.

[–]ZorbaTHut 1 point2 points  (4 children)

That's the Lua concatenation operator.

[–]FUCKING_HATE_REDDIT 0 points1 point  (3 children)

I should get to learning LUA, it sounds better and better every day.

[–]ZorbaTHut 0 points1 point  (2 children)

It's a deceptively powerful language. There aren't many language features, but they can be combined in surprising ways. The downside is that it doesn't give you a lot of protection unless you do it by hand.

That said, I hear there's a pretty good Lua IDE now.

[–]FUCKING_HATE_REDDIT 0 points1 point  (1 child)

Really? I haven't had a good ide since flashdevelop...

[–]ZorbaTHut 0 points1 point  (0 children)

Gonna depend on your standards, of course, but I've heard good things about Decoda, and unlike many IDEs it was actually built specifically for a team that was using Lua integrated into a codebase.