www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: One year of Go

reply Kagamin <spam here.lot> writes:
bearophile Wrote:

 I have to say I quite like not having to have semicolon
 statement terminators.

I too don't like to add the semicolon at the end of lines, I like to write Python code that doesn't need them

How do you look at necessary curly braces in Go? Shouldn't they adopt python syntax while keeping Go design?
Nov 13 2010
parent bearophile <bearophileHUGS lycos.com> writes:
Kagamin:

 How do you look at necessary curly braces in Go? Shouldn't they adopt python
syntax while keeping Go design?

I like Python syntax, but the features of a language must be all adapted to each other, they form something like an ecology. In general what I look for is a language syntax that is somehow resilient against simple mistakes that mammals do all the time. So curly braces are sometimes better than bug-prone alternatives. Bye, bearophile
Nov 13 2010