On Wed, Nov 11, 2009 at 9:00 PM, Mensanator <mensana...@aol.com> wrote:
> On Nov 11, 6:53 pm, kj <no.em...@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>

>> 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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to