Re: Allowing '-' in identifiers: what's the motivation?

2008-08-12 Thread Bob Rogers
From: TSa <[EMAIL PROTECTED]> Date: Tue, 12 Aug 2008 09:25:27 +0200 . . . What's so different in $foo-bar versus $foo*bar, $foo+bar or $foo/bar? The latter might e.g. indicate path variables. FWIW, one sees "hyphen substitution" like this only very rarely in Common Lisp code, desp

Re: Allowing '-' in identifiers: what's the motivation?

2008-08-12 Thread Brandon S. Allbery KF8NH
On 2008 Aug 12, at 20:39, Austin Hastings wrote: Actually, I proposed some years ago allowing "separable verbs" -- function/method/operator names with spaces in them, that could in fact bracket or intersperse themselves with other parameters. This would be a way of writing "if ... elsif ..

Re: Allowing '-' in identifiers: what's the motivation?

2008-08-12 Thread Austin Hastings
Actually, I proposed some years ago allowing "separable verbs" -- function/method/operator names with spaces in them, that could in fact bracket or intersperse themselves with other parameters. This would be a way of writing "if ... elsif ... else ..." for example. I wonder if whitespace in id

Re: Allowing '-' in identifiers: what's the motivation?

2008-08-12 Thread Darren Duncan
Mark J. Reed wrote: On Tue, Aug 12, 2008 at 4:03 AM, Michael Mangelsdorf <[EMAIL PROTECTED]> wrote: relaxed identifiers could become what programmers actually expect. Relaxing the rules is fine, but I would like to state for the record that I'd rather not ever see whitespace allowed in identif

Re: [svn:perl6-synopsis] r14574 - doc/trunk/design/syn

2008-08-12 Thread Mark J. Reed
The ' is actually a letter in some writing systems (e.g. Hawai'ian), and contractions are extremely common in French compared to English. $l'etat = "moi". But even in English I'll like being able to spell contractions properly. Hey, maybe we could borrow from Intercal and allow the "commenting o

RE: r14574 - doc/trunk/design/syn

2008-08-12 Thread Conrad Schneiker
> On 8 Aug., 19:34, Ron wrote: > > Author: larry > > Date: Fri Aug  8 10:34:49 2008 > > New Revision: 14574 > > > > Modified: > >    doc/trunk/design/syn/S02.pod > > > > Log: > > allow isolated ' and - in identifiers (only if followed by alpha) > > While I understand why - in identifiers is The Ri

Re: Multiple Return Values - details fleshed out

2008-08-12 Thread David Green
On 2008-Aug-9, John M. Dlugosz wrote to clarify and extrapolate from what is written in the Synopses: Third, list assignment will handle assignment to a literal pair by accessing the names of the items inside the Capture. So list assignment beh

Re: r14574 - doc/trunk/design/syn

2008-08-12 Thread Ron
On 8 Aug., 19:34, [EMAIL PROTECTED] wrote: > Author: larry > Date: Fri Aug  8 10:34:49 2008 > New Revision: 14574 > > Modified: >    doc/trunk/design/syn/S02.pod > > Log: > allow isolated ' and - in identifiers (only if followed by alpha) While I understand why - in identifiers is The Right Thing

Re: Allowing '-' in identifiers: what's the motivation?

2008-08-12 Thread Mark J. Reed
On Tue, Aug 12, 2008 at 4:03 AM, Michael Mangelsdorf <[EMAIL PROTECTED]> wrote: > relaxed identifiers could become what programmers actually expect. Relaxing the rules is fine, but I would like to state for the record that I'd rather not ever see whitespace allowed in identifiers. That's an Apples

Re: Allowing '-' in identifiers: what's the motivation?

2008-08-12 Thread John M. Dlugosz
Nicholas Clark nick-at-ccl4.org |Perl 6| wrote: Also, in Perl 6, constants aren't going to be bare words, because unlike Perl 5, they're not going to be implemented as subroutines. So that's another "obvious" thing that actually isn't going to matter here. A C in Perl 6 can be declared with or

Re: Allowing '-' in identifiers: what's the motivation?

2008-08-12 Thread Nicholas Clark
On Mon, Aug 11, 2008 at 09:07:33AM -0400, Mark J. Reed wrote: > I'm still somewhat ambivalent about this, myself. My previous > experience with hyphens in identifiers is chiefly in languages that > don't generally have algebraic expressions, e.g. LISP, XML, so it will > take some getting used to i

RE: Allowing '-' in identifiers: what's the motivation?

2008-08-12 Thread Michael Mangelsdorf
Dear Thomas, >>Is this supposed to be a joke Absolutely not. What I was trying to say is that there seems to be a trend to consider very relaxed identifier rules a good thing. If Perl 6 wants to grab the road for 20 years, then perhaps this issue is more serious (this is why I quoted you in par

Re: Allowing '-' in identifiers: what's the motivation?

2008-08-12 Thread TSa
HaloO, Michael Mangelsdorf wrote: Actually I can even imagine allowing almost all chars in the middle of identifiers. Is this a trend we should extrapolate into the lifetime scope of the Perl 6 language? How far are we in this process, given Unicode guillemets for hyper ops? Is this supposed