On 02/07/2012 06:09 PM, Sisyphus wrote:
----- Original Message ----- From: "Andrew DeFaria"
Any chance we can get Parse::RecDescent to handle (void) parms?
It's not often in perl that we see a request for something that does
nothing other than accommodate *extra* keystrokes ;-)
(Not only that, but it would make perl more C'ish ... which negates
another common theme.)
I know Ingy is happy for this change to occur, and so am I.
If there's a patch for this, then I'll happily apply it (and add some
testing to the Inline test suite), so long as it does not break the
current practice of using empty params.
It would be preferable (but not mandatory) that we also get the same
behaviour with the ParseRegExp.pm parser (not *just* P::RD).
It's not me that wants it - was my former client. They had a requirement
to use (void) parms (I don't know why - it was my understanding that ()
parms issue only a warning but they claimed their compiler treated it as
an error - maybe it was just a dictate to get rid of warnings).
I have no patch but I believe the bug lies in Parse::RecDescent. (void)
is valid syntax and I see no reason why it should not be supported.
I posted here and emailed you directly about this several times and got
no response. I realise that Parse::RecDescent is authored by somebody else.
I'm not working for that previous client anymore so the motivation to
get this fixed is lessoned, but out of professional curiosity I was just
doing a little follow up.
--
Andrew DeFaria <http://defaria.com>
I wonder how much deeper would the ocean be without sponges.