Go: A new system programing language

Bill Baxter wbaxter at gmail.com
Wed Nov 11 06:59:36 PST 2009


Looks interesting.

* Uses a module system
* Built-in arrays are value types.
* Python like slice syntx  a[lo:hi]
* immutable strings
* switch has no break.  Use "fallthrough" to fallthrough.
* Nested functions
* First class tuples  ( a,b = func(),   a,b=b,a )
* := for assignment
* Uses "var" to declare variables (this was chapmpioned by some here
instead of auto)
* varible type comes after declaration and is optional
* return type of functions comes after parameters
* No Windows port yet.  That's going to be a bit of a roadblock to
widespread adoption.
* Iota!?
* ...

There's a lot there that looks either like D or like things people in
the D community have argued for.
And it's got the billion dollar backing of a major company.

--bb

On Tue, Nov 10, 2009 at 6:21 PM, Knud Soerensen
<4tuu4k002 at sneakemail.com> wrote:
> Google have made a new language.
>
> See http://www.youtube.com/watch?v=rKnDgT73v8s
>
> --
> Join me on
> CrowdNews  http://crowdnews.eu/users/addGuide/42/
> Facebook   http://www.facebook.com/profile.php?id=1198821880
> Linkedin   http://www.linkedin.com/pub/0/117/a54
> Mandala    http://www.mandala.dk/view-profile.php4?profileID=7660
>



More information about the Digitalmars-d mailing list