Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Let shortcut types have useful behavior in the parameterless case

by jdporter (Paladin)
on Aug 15, 2006 at 17:24 UTC ( [id://567505]=note: print w/replies, xml ) Need Help??


in reply to Re: Let shortcut types have useful behavior in the parameterless case
in thread Let shortcut types have useful behavior in the parameterless case

any handler that doesnt have a sane no-target possibility should foward to the appropriate documentation page

That's a reasonable thing to do, but to my mind a better approach would be to let [foo://] DWIM from the writer's POV. IOW, if I want to link to the Perl Changes Browser, I write [apc://] If I want to link to the Wiki Wiki Web, I write [c2://]. If I want to link to the Perl docs, I write [doc://]. If I want to link to Wikipedia, I write [wp://]. And so on. Rather than assuming the author made an error.

There's precedent for both approaches ([id://] vs. [apc://]). However, given that [id://] doesn't have any other useful default semantics, I'm not convinced that this is the precedent to follow. I'd rather follow the [apc://] precedent.

We're building the house of the future together.

Replies are listed 'Best First'.
Re^3: Let shortcut types have useful behavior in the parameterless case
by ikegami (Patriarch) on Aug 15, 2006 at 17:31 UTC
    I think you misread. demerphq specified the handlers without "a sane no-target possibility" (e.g. the handlers for "http", "id" and similar) should link to docs on how to use them, not all of handlers.

      You're right - I did misread.

        Probably you misread because I used a double negative where it was less than clear. Sorry about that.

        ---
        $world=~s/war/peace/g

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://567505]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-16 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found