comp.lang.ada
 help / color / mirror / Atom feed
From: Natasha Kerensikova <lithiumcat@instinctive.eu>
Subject: Tagged type abuse
Date: Thu, 18 Dec 2014 11:26:58 +0000 (UTC)
Date: 2014-12-18T11:26:58+00:00	[thread overview]
Message-ID: <slrnm95egb.nrc.lithiumcat@nat.rebma.instinctive.eu> (raw)

Hello,

I find myself using more and more tagged types for reasons that have
nothing to do with tagging, mostly the prefix notations (when it helps
readability and when a function call is conceptually accessing a record
element but with a hidden concrete implementation) and the passing by
reference.

However, I still feel guilty about it, like I'm abusing a feature
unrelated to what I wish to accomplish.

What would you recommend to appease such feelings?
Sacrificing prefix notation readability on types that have no business
being tagged?
Trying to be more pragmatic and use tools (and language features) for any
purpose at which they end up being useful, even unintended?


Natasha

             reply	other threads:[~2014-12-18 11:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-18 11:26 Natasha Kerensikova [this message]
2014-12-18 13:01 ` Tagged type abuse Dmitry A. Kazakov
2014-12-18 16:59 ` Jeffrey Carter
2014-12-18 23:10   ` Randy Brukardt
2014-12-19 12:42     ` Michael B.
2014-12-20  0:07       ` Randy Brukardt
2014-12-20 12:39         ` Michael B.
replies disabled

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