[Gambas-user] variable declaration everywhere ???
gambas.fr at gmail.com
Thu Dec 13 09:59:53 CET 2018
For some long piece of code having to memorize the long list of
declared variable sometime is more harder than reading a var just
declared above. And yes ... only for things like loop or var swaping.
But like many things is it matter of language limitation or convention
? What is the better ... limiting using by constaint or by convention
Limiting by constraint can make us lose some users (It's the same for
Maybe for some case allowing to not use explicit declaration can be
interesting... like for script for exemple.
In this case we can imagine that default can be variant. But this must
be an option in header (NOEXPLICIT).
WIth that gbs can automatiquely add this option in background.
More information about the User