Skip to content

Lack tests for "goto EXPR exempt from "looks-like-a-function" rule #23806

@jkeenan

Description

@jkeenan

As part of my research on Fatalization of currently deprecated goto
construct
I have been
re-reading our current documentation of goto in blead and have been trying
to locate in our test suite examples of each claim made in that documentation.
What we find -- or fail to find -- there will have an impact on the
documentation updates provided as part of a pull request like the current
#23782. I've posted the preliminary results
of that documentation review
here.

This is the fourth in a series of GH issues addressing the items which I
believe are lacking in that documentation.

perldoc -f goto states:

As shown in this example ['goto ("FOO", "BAR", "GLARCH")[$i];'], "goto EXPR"
is exempt from the "looks like a function" rule. A pair of parentheses
following it does not (necessarily) delimit its argument. "goto("NE")."XT"" is
equivalent to "goto NEXT".

As far as I can tell, we have anything like goto("NE")."XT" in the test
suite. Probably not; ack 'goto\s*\([^)]*\)\s*\.\s*' . turned up nothing in
the entire repository. Write tests for this claim.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions