Python & Go

Mensanator mensanator at aol.com
Thu Nov 12 00:27:31 EST 2009


On Nov 11, 9:56 pm, geremy condra <debat... at gmail.com> wrote:
> On Wed, Nov 11, 2009 at 9:00 PM, Mensanator <mensana... at aol.com> wrote:
> > On Nov 11, 6:53 pm, kj <no.em... at please.post> wrote:
> >> I'm just learning about Google's latest: the GO (Go?) language.
> >> (e.g.http://golang.orgorhttp://www.youtube.com/watch?v=rKnDgT73v8s).
> >> There are some distinctly Pythonoid features to the syntax, such
> >> as "import this_or_that",
>
> > There's more to Python than import statements.
> > In fact, this Go language is nothing like Python.
>
> Actually, numerous analogies have been drawn between the two
> both by whoever wrote the docs and the tech media, including
> slashdot and techcrunch.
>
> >> the absence of parentheses at the top of
> >> flow control constructs,
>
> > Huh?
>
> The OP is referring to the fact that for and if do not have
> mandatory parenthesis.
>
> >> and quite a few statements without a
> >> trailing semicolon.
>
> > Those are exceptions, the rule appears to be "ends with semicolon".
> > In this example, I see semicolons all over the place.
>
> The rule is that if its between parens, it needs semicolons.
>
> <snip>

Why did you snip the example that proves you're wrong?

>
> >> Then again, there's a lot that looks distinctly
> >> un-Pythonlike, such as the curly brackets all over the place.
>
> > Duh.
>
> >> And
> >> among the un-Pythonlike stuff there's a lot that looks like nothing
> >> else that I've ever seen...
>
> > Go look at a C++ program sometime.
>
> Go doesn't support inheritance, so C++ is pretty much out. C
> is a lot closer, but still not all that close.
>
> Geremy Condra




More information about the Python-list mailing list