Go Programming talk [OT]

Leandro Lucarella llucax at gmail.com
Sun Jun 6 17:45:06 PDT 2010


Adam Ruppe, el  6 de junio a las 19:06 me escribiste:
> On 6/6/10, bearophile <bearophileHUGS at lycos.com> wrote:
> > At 9.30 you can see the switch used on a type type :-)
> > You can see a similar example here:
> > http://golang.org/src/pkg/exp/datafmt/datafmt.go
> 
> That example looks really similar to the D1 "D-style Variadic
> Functions" example here: http://digitalmars.com/d/1.0/function.html
> 
> Of course, the D1 thing there is an if/else/if chain instead of a
> switch, but they really look to operate basically the same.

It looks like Go now have scope (exit) =)

http://golang.org/doc/go_spec.html#DeferStmt

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Hay manos capaces de fabricar herramientas
con las que se hacen máquinas para hacer ordenadores
que a su vez diseñan máquinas que hacen herramientas
para que las use la mano


More information about the Digitalmars-d mailing list