[Info-vax] Coding with/without RDBMS
Arne Vajhøj
arne at vajhoej.dk
Thu Oct 14 19:13:55 EDT 2021
On 10/14/2021 3:42 PM, Dave Froble wrote:
> On 10/14/2021 2:36 PM, Arne Vajhøj wrote:
>> On 10/14/2021 2:06 PM, Simon Clubley wrote:
>>> BTW, Basic really does like spewing its special characters onto the
>>> end of variable references. :-)
> Basic can be very happy to let the programmer specify that all variables
> must be declared. Then variable names can be whatever they are declared
> to be. Frankly, I see no decent reason to do all that typing when the
> compiler can do a much better job than any programmer. One just needs to
> give it some hints. I learned the variable suffex stuff long ago, and
> it's just natural to me. Just as conventions in another language might
> be natural to someone used to that language.
Having variable type determined by variable name is definitely
out of fashion. The only other language i know doing that is
Fortran (Fortran is first letter while Basic is suffix but
same concept).
But type inference is definitely in fashion.
var v = 123
instead of:
int v = 123
and:
var v = "ABC"
instead of:
String v = "ABC"
And for those that does not use languages less than 30 years
old: var means "dear compiler give this variable type based on
right hand side" not "I want to be able to assign anything to this
variable".
Arne
More information about the Info-vax
mailing list