The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,619 other followers

Interesting comment by Joseph G. Mitzen delphi on my “Delphi – for … in on enumerated data types” post

Posted by jpluimers on 2014/07/03

Joseph G. Mitzen posted a very interesting (and elaborate <g>) comment on a post from me in 2009: Delphi – for … in on enumerated data types « The Wiert Corner – irregular stream of stuff.

The crux of his post is about consistency of your tools. And clearly, the Delphi team has some work to do in that regard especially when compared to the Python world where consistency is key (and takes a lot of time to introduce new features as a side effect).

He refers to the ADUG post For-in Enumeration | Australian Delphi User Group Members by DaddyHPriest that lists a number of areas where Delphi does not have enumerator support for.

Which reminds me I promised to publish some more enumeration demos showing what kind of code could be eliminated if things became more consistent.

Hopefully this summer gives me a bit more time for that (:

–jeroen

via: Delphi – for … in on enumerated data types « The Wiert Corner – irregular stream of stuff.

4 Responses to “Interesting comment by Joseph G. Mitzen delphi on my “Delphi – for … in on enumerated data types” post”

  1. Uwe Raabe said

    for-in over a TDataset? I remember having done somthing like that a few years ago. And I actually wrote about it: http://www.uweraabe.de/Blog/2010/08/06/a-magical-gathering-part-1/

    • KMorwath said

      For in in a TDataset? That’s exactly how you teach people to use a RDBMS the wrong way.

      • jpluimers said

        I know in RDBMS land and XSLT land people rather have the data drive the expression, but in practice this comes in very handy, especially since you can leave the loop whenever you want (so there won’t be more data fetching).

    • jpluimers said

      I loved the for…in concept ever since I saw iterators late last century, so I was really happy to see it appear in Java, C#, Matlab and other languages. Delphi took a while, so when it finally appeared in Delphi 2006 a TDataSet enumerator was one of the first things I tried with it. I just never got around publishing the code. So one day…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: