Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The first thing I immediately noticed is that they got rid of the parentheses in "if" and "for" statements. Coming from Python, I really like this.

Python doesn't enforce any parenthesis in those statements, so how were you using them in Python that changes how you'd do the same thing in Go?



I assume he likes it because it doesn't change anything. He's used to the Python way.


Maybe I'm missing something, but "they got rid of the parentheses" sounds like either Go used to require parentheses for this or he thought Python did. If it was the former, then I misread (I don't know very much about Go).


The author is writing in the context of moving from c and c++ so I imagine he's talking about getting rid of c style parenthesis.


I think the author was referring to C and all the other popular languages that similarly enforce the brackets for expressions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: