comp.lang.ada
 help / color / mirror / Atom feed
* Tagged type abuse
@ 2014-12-18 11:26 Natasha Kerensikova
  2014-12-18 13:01 ` Dmitry A. Kazakov
  2014-12-18 16:59 ` Jeffrey Carter
  0 siblings, 2 replies; 7+ messages in thread
From: Natasha Kerensikova @ 2014-12-18 11:26 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-12-20 12:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-18 11:26 Tagged type abuse Natasha Kerensikova
2014-12-18 13:01 ` 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.

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