Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by jdporter (Canon)
on Aug 15, 2006 at 17:24 UTC ( #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.


Comment on Re^2: Let shortcut types have useful behavior in the parameterless case
Select or Download Code
Re^3: Let shortcut types have useful behavior in the parameterless case
by ikegami (Pope) 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
Node Status?
node history
Node Type: note [id://567505]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2015-07-06 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (83 votes), past polls