[Info-vax] Coding with/without RDBMS

chris chris-nospam at tridac.net
Fri Oct 15 16:34:05 EDT 2021


On 10/15/21 19:35, Simon Clubley wrote:
> On 2021-10-15, Arne Vajhøj<arne at vajhoej.dk>  wrote:
>> On 10/15/2021 2:25 PM, Simon Clubley wrote:
>>> On 2021-10-14, Arne Vajhøj<arne at vajhoej.dk>  wrote:
>>>> But type inference is definitely in fashion.
>>>
>>> Unless you are writing software that can kill people if it goes wrong.
>>
>> I suspect languages with type inference are occasionally used for that.
>>
>> C++, Java, C#, Rust etc..
>>
>
> But what do the safety-critical standards say about what you are and
> are not allowed to do in those languages ?
>
> Just because a language might have a certain feature, it doesn't mean
> that you are allowed to use it in safety-critical software.
>
> Simon.
>

I bought a copy of the MISRA standard years ago and more or less stick
to it's recommendations. As for variables and coding im general, still
using approx Hungarian system, where variables and function names always
have a type prefix, then camel case for long names. Also, tend not to
use the C standard library, as that defaults so much to int, where
unsigned would be more appropriate. Careless typing may work sometimes,
but can cause serious trouble as well...

Chris




More information about the Info-vax mailing list