On Dec 14, 4:27 am, Dennis H <
arctic...@gmail.com> wrote:
> Well with the new semicolon rules you won't have to worry about
> leaving off a semicolon. =) Anyway, a big problem I see with your
> suggestion is that it'll make it a bit harder to read other people's
> Go code, which might fracture the community, somewhat. In addition,
> it'll make the gofmt situation a bit more complicated as it'll have to
> support other syntax types... Besides, Go's syntax isn't that bad, to
> be honest. For what it's worth, I'm against the proposal.
I personally think that if gofmt exists, it could just convert things
into one syntax or another. This feature could be included in
versioning system. I have thought the same thing about different
languages (but given up this thought as it would not make sense with
variable names etc.), but now think that certain syntactical things
could be solved by this. If gofmt was built-in to versioning syntax
and cleaned code on commit (or didn't accept uncleaned code), then it
would probably be possible to just show the code to different people
in different ways.
But it can be a complex case to express every one-line code part etc.
in pythonic syntax, also there is some meaning in having control over
each character.
I think python syntax:
* Looks cleaner and connects syntax rules with style rules
* Doesn't allow many nested blocks easily (gets to one-character
indent) - anyway, there are some people unable to orient themselves in
many nested blocks because of some brain disorder or smth. even if
they are good programmers; at least someone told me that.
* Doesn't take away the freedom of style if we have gofmt anyway