Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Perl 6 Whitespace Issues

by ysth (Canon)
on May 07, 2004 at 17:12 UTC ( [id://351532]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl 6 Whitespace Issues
in thread How to Sell Perl 6

How do you feel about the %hash .{key} workaround? I think you are really in the minority, and asking you to slightly adapt your style makes sense there.

On the other issue, the GNU coding style calls for spaces between function name and parenthesized argument list, and is used by a great many people (though not by me except where required by local standards). I imagine there would be an uproar if perl6 were released only with a GPL incompatible license. I regret there isn't a similar uproar over this issue.

Replies are listed 'Best First'.
Re: Perl 6 Whitespace Issues
by Abigail-II (Bishop) on May 07, 2004 at 21:40 UTC
    How do you feel about the %hash .{key} workaround?
    About as bad as %hash{key}. The dot there is unnatural, and doesn't make the code more clear.
    I think you are really in the minority, and asking you to slightly adapt your style makes sense there.
    Minority or not, that doesn't matter. Larry's view are clear - there's no chance in hell he's going to change his mind on this one. But for me it's a big deal - a very big deal, and it doesn't become a lesser deal whether I'm in the minority, the majority, or alone. For me the issue is big enough that I don't see myself ever programming in perl6, and hence I ain't going to "sell" perl6.
    On the other issue, the GNU coding style calls for spaces between function name and parenthesized argument list
    For me, there's hardly a difference between indexing in an array or hash, and calling a subroutine. And, from the point of the expression where the indexed element, or the subroutine value is used, there is no difference. Indexing in an array or hash is just a call to a subroutine with one argument. Which is why I put whitespace between an array or hash name and its index, and I put whitespace between a function name and its argument(s).

    Abigail

Re^3: Perl 6 Whitespace Issues
by PhilHibbs (Hermit) on Aug 10, 2004 at 17:13 UTC
    On the other issue, the GNU coding style calls for spaces between function name and parenthesized argument list, and is used by a great many people (though not by me except where required by local standards). I imagine there would be an uproar if perl6 were released only with a GPL incompatible license. I regret there isn't a similar uproar over this issue.
    Huh? The GNU coding style is not mandatory for GPL projects. It may be mandatory for GNU projects, but Perl is not part of the GNU Project, is it?
      The GNU coding style is not mandatory for GPL projects.
      I wasn't saying it was. In fact, the spaces are just a recommendation and aren't even mandatory for GNU projects. I was making an analogy.

      Based on conversation with TimToady in the cb today, it sounds like this misfeature has been reconsidered. Update: apparently not :(.

        Do you mean to say that Abigail's concerns have been addressed? I must say I don't like the idea of code changing meaning from Perl 5 to Perl 6, but neither could I get myself worked up about this particular instance, because I find print length ($foo) + 1; to be ugly. I don't like the GNU bracing style either.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-29 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found