From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: container cursor type cannot be tagged
Date: Fri, 29 Aug 2014 09:28:16 +0200
Date: 2014-08-29T09:28:16+02:00 [thread overview]
Message-ID: <c8utnmednhss.tg5692sifke0$.dlg@40tude.net> (raw)
In-Reply-To: lto38o$ddj$1@loke.gir.dk
On Thu, 28 Aug 2014 15:25:59 -0500, Randy Brukardt wrote:
> If it was me, I'd put a container parameter on every operation (which would
> be the prefix), and cursors would work soley like array indexes.
Huh, remember our discussion about cursor/iterator being a bad idea?
That is another of multiple reasons why. Cursor tend to become a full class
with descendants and primitive operations which ends up in multiple
dispatch, for whatever reason not available. An index almost always can be
a "final" type which makes everything a lot easier.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2014-08-29 7:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-28 19:21 container cursor type cannot be tagged Stephen Leake
2014-08-28 20:25 ` Randy Brukardt
2014-08-29 7:28 ` Dmitry A. Kazakov [this message]
2014-08-29 7:59 ` J-P. Rosen
2014-08-29 8:46 ` Dmitry A. Kazakov
2014-08-29 23:08 ` Randy Brukardt
2014-08-29 14:50 ` Stephen Leake
2014-08-29 23:00 ` Randy Brukardt
2014-08-30 15:16 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox