[POLL] Do you like "then,do,end" or "{ }"?
Posted: Fri Jul 26, 2013 12:24 am
I immediately noticed Lua has then,do,and end instead of curly braces. I want to know what others think of this. Vote nao plz.
Oh yea, I forgot about Squirrel.slime wrote:Squirrel is a language which takes heavy influence from Lua but uses braces for code blocks.
Javascript always seems to turn into a mess of brackets lol, but it wouldn't be fixed by using "then/do/end", it would then just be a mess of "then/do/end" really. Most languages don't seem to go nuts with brackets, so most of the time I do prefer using them simply because of habit, not because they look ugly or anything.Plu wrote:The problem with including {} is that you probably also need to include () in a lot of places to make your code clear and I'm not sure it'd become more readable.
If find Lua to be far easier on the eyes than Javascript and the two are quite alike in how they work, but the syntax is different. And Javascript usually turns into a mess of (}{}(()][]) at some point in development.
That wont happen. I asked this. Don't get me wrong, I'd love a Python version of LÖVE(and I've been temped to write a port myself, based on Cocos2d-Python, but then I thought I'd have no idea how to start). Why wouldn't there be? Well, LÖVE's philosophy is based on Lua's philosophy, from what I've been told. Robin can tell me if I'm wrong, and you could add to this.[...]but I'd just about give them all up if there was a Python version of Love[...]