[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: duplicated local variables with same name
- From: Javier Guerra Giraldez <javier@...>
- Date: Thu, 18 Jun 2015 15:07:30 -0500
On Thu, Jun 18, 2015 at 2:54 PM, Brigham Toskin <brighamtoskin@gmail.com> wrote:
> Yeah, that's why I mentioned Go. you can do
>
> foo := 25
> foo := "I'm a foo!"
> foo = 25 // ERROR! foo is type string!
sure? AFAIR, in Go redefinition is an error... (unless in the same
statement you define another variable for the first time)
--
Javier
- References:
- duplicated local variables with same name, Jinhua Luo
- Re: duplicated local variables with same name, Luiz Henrique de Figueiredo
- Re: duplicated local variables with same name, Jinhua Luo
- Re: duplicated local variables with same name, Dirk Laurie
- Re: duplicated local variables with same name, Patrick Donnelly
- Re: duplicated local variables with same name, Sven Olsen
- Re: duplicated local variables with same name, Soni L.
- Re: duplicated local variables with same name, Brigham Toskin
- Re: duplicated local variables with same name, Soni L.
- Re: duplicated local variables with same name, Brigham Toskin
- Re: duplicated local variables with same name, Robert Virding
- Re: duplicated local variables with same name, Brigham Toskin
- Re: duplicated local variables with same name, Tim Hill
- Re: duplicated local variables with same name, Brigham Toskin