[fpc-pascal] Class or Record Helper for Interface?

Anthony Walter sysrpl at gmail.com
Sat Aug 27 22:44:44 CEST 2022


I'd be all for just eliminating the "class",  "record", and "type" helper
and adding support for just using "helper" in all modes.

type
  TPointHelper = helper for TPoint
  end;

  TCanvasHelper = helper for TCanvas
  end;

  TDoubleHelper = helper for Double
  end;

  TInterfaceHelper = helper for IInterface
  end;

I know this would make code written this way incompatible with Delphi, but
I think pretending the helper type serves no actual purpose. The only thing
it does is it makes it harder for developers to remember which names to use
in which cases. The compiler should be able to figure it out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220827/ac4c74a1/attachment-0001.htm>


More information about the fpc-pascal mailing list