comp.lang.ada
 help / color / mirror / Atom feed
From: G. B. <nonlegitur@nmhp.invalid>
Subject: Re: User defined implicit conversion
Date: Wed, 6 Nov 2019 06:19:13 -0000 (UTC)
Date: 2019-11-06T06:19:13+00:00	[thread overview]
Message-ID: <qptol0$ngr$1@dont-email.me> (raw)
In-Reply-To: qpcv5l$sm7$1@franka.jacob-sparre.dk

Randy Brukardt <randy@rrsoftware.com> wrote:
> "Alain De Vos" <devosalain71@gmail.com> wrote in message 
> news:d9269cae-93e5-428c-9c7c-a7a1f5679806@googlegroups.com...
>> Casting from one type to another is a real pain.

> For example, instead of:
> 
>      type Type_A is new String;
> 
> use:
> 
>      Subtype Type_A is String;
> 
> And now you never need to use a type conversion between Type_A and String.

Implicit conversion introduces implicit knowledge, shared by authors of a
program. So, weak types should help employees stay safe in their jobs if
they have the knowledge.

  parent reply	other threads:[~2019-11-06  6:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-30 19:43 User defined implicit conversion Alain De Vos
2019-10-30 19:58 ` Simon Wright
2019-10-30 20:39 ` Egil H H
2019-10-30 21:26 ` Randy Brukardt
2019-10-30 22:17   ` Dmitry A. Kazakov
2019-11-06  6:19   ` G. B. [this message]
2019-10-31 11:18 ` AdaMagica
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox