Opened 7 years ago

Closed 5 years ago

#11925 closed Feature Requests (wontfix)

using namely understandable placeholders

Reported by: DarkTrick@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.60.0 Severity: Cosmetic
Keywords: Cc:

Description

Current situation: At the time, placeholders have rather generic names (_a,_1,_r1,...). That leads to code like this (from the error handling tutorial):

<< _4 what failed? << construct<std::string>(_3, _2) iterators to error-pos, end

This is hardly self-explanatory code.

Suggestion: change placeholder names to humanly understandable phrases, where possible.

Change History (2)

comment:1 by Nikita Kniazev <nok.raven@…>, 5 years ago

I do not think it is a good idea to spoil the qi namespace with different aliases, but you can do it yourself if you want to.

qi::_2_type const it_end_placeholder;
qi::_3_type const it_err_placeholder;
qi::_4_type const what_failed_placeholder;

comment:2 by Joel de Guzman, 5 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.