0
Tags, Indentation, Curly brackets or Words
Vba uses words to define blocks (if then ... end if). C/C++/Java uses Curly brackets {} Python relies in Indentation Html/Xml are markup languages and uses tags What do you prefer if you could create your new program language? And why did you chose that?
3 Réponses
+ 18
Never really thought of creating my own programming language... C++ is good as it is. :D
That said, I'm going for curly braces if I had to choose.
+ 15
I prefer curly brackets style because it's neatness, clarity and easily understandable.
If the statement in the "if" block is a single line you can decide not to use curly braces.
Python indentation is another good option. But might be difficult to managed if you have too many nested conditions.
+ 3
{
I would definitely go for curly braces because when it comes to nesting, they are the only neat things and makes the code readable.
}