[Info-vax] Coding with/without RDBMS
Phillip Helbig undress to reply
helbig at asclothestro.multivax.de
Fri Oct 15 02:03:40 EDT 2021
In article <6168b9b9$0$700$14726298 at news.sunsite.dk>, =?UTF-8?Q?Arne_Vajh=c3=b8j?= <arne at vajhoej.dk> writes:
> 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".
In Fortran, the implicit typing is only for INTEGER and REAL; it doesn't
work for other data types.
More information about the Info-vax
mailing list