[fpc-pascal] Named optional arguments

Sven Barth pascaldragon at googlemail.com
Sun Nov 28 12:56:17 CET 2021


Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
So., 28. Nov. 2021, 05:32:

>
>
> > On Nov 27, 2021, at 5:03 PM, Sven Barth <pascaldragon at googlemail.com>
> wrote:
> >
> > candidates:=tcallcandidates.create(sym:=symtableprocentry,
> st:=symtableproc,ppn:=left,
> ignorevisibility:=ignorevisibility,allowdefaultparas:=not(nf_isproperty in
> flags),objcidcall:=cnf_objc_id_call in
> callnodeflags,explicitunit:=cnf_unit_specified in
> callnodeflags,searchhelpers:=callnodeflags*[cnf_anon_inherited,cnf_inherited]=[],
> anoninherited:=cnf_anon_inherited in
> callnodeflags,spezcontext:=spezcontext);
> >
> > So you've gained *nothing*.
>
> I wouldn't say nothing but it's still really hard to read. My only thought
> there was that it would open the door for some syntax coloring on the
> parameter name so you can scan them easier.
>

Lazarus already highlights commas differently, so one can easily
differentiate the parameters.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20211128/b90632a6/attachment.htm>


More information about the fpc-pascal mailing list