[Info-vax] Coding with/without RDBMS
Bill Gunshannon
bill.gunshannon at gmail.com
Fri Oct 15 12:29:44 EDT 2021
On 10/15/21 2:03 AM, Phillip Helbig (undress to reply) wrote:
> 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.
>
Relying on anything IMPLICIT is just bad programming practice.
I thought the languages settled that decades ago.
bill
More information about the Info-vax
mailing list