[fpc-pascal] Named optional arguments

Ryan Joseph genericptr at gmail.com
Fri Nov 26 10:20:59 CET 2021



> On Nov 26, 2021, at 3:31 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
> 
> That seems like a fake argument: Of course you need to look, because you need the names ?
> Secondly, the IDE will simply tell you what the names are when the cursor is
> on them.

It's mainly useful when reading code so you don't need to review the function definition, using code tools or any other method. I've been enjoying it in other languages when it's not compulsory and FPC already supports the syntax so I thought it would be low hanging fruit.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list