[Gambas-user] variable declaration everywhere ???

Benoît Minisini g4mba5 at gmail.com
Tue Dec 11 23:47:01 CET 2018


Le 11/12/2018 à 23:26, David Sanromá a écrit :
> Hello,
> 
> 
> I don't mean to start a war ;) but there are cases where it makes 
> perfect sense to declare within code:
> 
> 
> For I As Integer=1 To 10
> 
> Next
> 
> 
> Makes it very easy to move the code around to another function and/or 
> re-factor. You just worry abut the piece of code. You take the 
> declaration with you
> 
> 
> Just an idea ;)
> 
> David
> 

As far as I am concern, the deal is between "code easier to write" and 
"code easier to debug", taking into account that the former is 20% of 
the development time, and the later 80%.

-- 
Benoît Minisini


More information about the User mailing list