Go: A new system programing language
Robert Jacques
sandford at jhu.edu
Wed Nov 11 07:57:20 PST 2009
On Wed, 11 Nov 2009 09:59:36 -0500, Bill Baxter <wbaxter at gmail.com> wrote:
> 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
>>
* := isn't used for assignment, it's used for automatic type deduction
and assignment:
In Go: t := T(5);
In D: auto t = T(5);
* var is also required for standard, typed variable declaration in
addition to automatic deduction
In Go: var t float;
In D: float t;
* Uses '+' for concatenation
More information about the Digitalmars-d
mailing list