All in all, what we have:
- Descriptions in sources
what we want:
- Descriptions in IDE code editor (when sources are accessible).
- Descriptions in IDE visual editors (which are called from BPL => compiled package => no source available but only runtime variables)
I know no option that could help with both use cases with a single source of info. Runtime records won't help when writing the code and descriptions in comments won't be compiled to binary.
So it seems we've to build an additional info storage, be it a source code or some textual file. To keep it consistent without big hassle it should be built automatically => some script or build tool is needed. HelpInsight format is pretty straightforward and could be parsed even without full-featured XML engine. It's native for Delphi and is accepted by Lazarus in more or less usable state.
marsupilami wrote: ↑18.07.2020, 15:06
[*]I doubt that the usual developer will use the constants. They will have a look at the documentation and then do something like "Connection.Properties.Add('sslcert=' + CertFileName')". So they will never see our work.
Well, if docs won't tell the values of parameters but only the names of constants, devs will use them. Any experienced developer comes to "Don't use magic values in code" conclusion so I guess this change encourages good coding style