I have found myself designing a language for fun that is a cross between Ruby and Java, and as I work on the compiler / interpreter I find myself pondering using whitespace as a terminator, like:
class myClass extends baseClass
function someFunction(arg)
value eq firstValue
value2 eq anotherValue
x = 2
The alternative would use a symbol or a word as a terminator like JavaScript's ";" and Ruby's "end."
function myFunction(arg){
value = someVal;
}
With languages like Python seemingly preferred today, I wanted to see what the StackOverflow community thought about older style syntax. It seems much easier to write a parser for the older style syntax, so would it be better to stick to the Java / JavaScript style? If so why?