Opened 11 years ago

Last modified 4 years ago

#1158 new Feature Requests

optional named parameters

Reported by: Joel de Guzman Owned by: Daniel James
Milestone: To Be Determined Component: quickbook
Version: Boost 1.34.1 Severity: Not Applicable
Keywords: Cc:

Description

Can templates notation be extended to use optional named parameters (onp). I am thinking in:

Template definition:

[template tname [a b c]

[onp_1 default_1] [onp_2 default_2]

This is the template body... use unamed forced parameters: [a] use onp parameters: [onp_1] (This prints the value or the default) [onp_1? if was used do this : if not do this ]

]

IMO this is a good extension and is backward compatible with the current implementation.

Change History (2)

comment:1 Changed 11 years ago by Joel de Guzman

Component: Nonequickbook

comment:2 Changed 4 years ago by Joel de Guzman

Owner: changed from Joel de Guzman to Daniel James
Note: See TracTickets for help on using tickets.