UPDATED -----------------------------------------------------------------------

UPDATED -----------------------------------------------------------------------
This issue was created in Quality Portal, please look at https://quality.embarcadero.com/browse/RSP-10336.

"For a Delphi more fun".
----------------------------------------------------------------------------------------

Generic Class Helper support for Delphi

I've realized Delphi does not support generic class helper, only concrete classes can have helpers :'( Thus, awesome things such "Linq to Object", "Reactive Extensions" hardly will be implemented in a fashion API. May be simple add support for generic ones, the compiler may generate stubs for each occurrence of generic class helper putting the concrete type in place of the generic type parameter.

I would love to see it in XE9 :D

Comments

  1. You should register these ideas in the quality portal so that people can vote for them!

    ReplyDelete
  2. I've been asking for them for years and Allen knows about it.

    ReplyDelete
  3. ones are registered 100 years ago, but how cares? And for linq/Rx should exists compact lambda syntax. Current syntax is unusable.

    ReplyDelete
  4. Do either of you (Stefan Glienke or Horacio Jose Cavalcanti Filho) have a QP link? I'll vote for it.

    ReplyDelete
  5. David Millington Stefan Glienke Lars Fosdal Many thanks for supporting me :D
    Please, look at https://quality.embarcadero.com/browse/RSP-10336 in Quality Portal. The issue (RSP-10336 - Generic Class Helper support for Delphi
    ) was recently created there.

    ReplyDelete
  6. Stefan Glienke If the Embarcadero engineers don't assign this issue, I think I may be done using MSBuild tasks for automatic creation of concrete class helpers.

    ReplyDelete
  7. Generic helpers alone without helpers for interfaces won't help you much if you think about Linq to objects or RX. In Delphi you don't have GC so most APIs like these (that create new instances behind the scenes) need to be interface based.

    ReplyDelete
  8. Is there a QP for interface helpers? I can't find one.

    ReplyDelete
  9. I don't create QP for every feedback that I directly communicate to the R&D team.

    But there is an entry on uservoice (which they are watching according to Marco Cantù)

    https://delphi.uservoice.com/forums/4433-language-features/suggestions/1345443--class-helper-for-interfaces

    ReplyDelete
  10. Thanks Stefan. I know you talk directly to the R&D team, but I don't and I'd still like a way to visibly support features that the R&D team can see. Voting is good. As it turns out, I had voted for that uservoice already ;)

    ReplyDelete
  11. Stefan Glienke​ Many thanks. I agree with you.

    Sad truth about helpers for interfaces #crying , I would love to see interface helpers and generic interface helpers too.

    I love Delphi but I can't understand why core features does not have the proper care.

    ReplyDelete
  12. David Millington I can create the issue entry in Quality Portal, when I get home I will work on it.

    ReplyDelete

Post a Comment