Re: The last shall be last

2004-09-07 Thread Smylers
with other cases.) Smylers

Re: Synopsis 9 draft 1

2004-09-09 Thread Smylers
awkwardly. Would making it Cis shaped be any better? my num @data is Stuff is shaped(4;2); Smylers

Re: S5 updated

2004-09-24 Thread Smylers
how useful people find it.) Smylers

Re: S10/11 Questions

2004-11-13 Thread Smylers
explained of assuming Perl 5 until it encounters one of the constructs such as a bare Cmy; that persuade it otherwise. Smylers

Re: Will _anything_ be able to truly parse and understand perl?

2004-11-24 Thread Smylers
Adam Kennedy writes: perl itself would also appear unable to understand perl source, instead doing what I would call RIBRIB parsing, Read a bit, run a bit. RIBRIB? RABRAB, surely! Smylers

Re: Angle quotes and pointy brackets

2004-11-25 Thread Smylers
characters happen to be adjacent to each other in the source, and » likewise. Otherwise you could have ridiculous things like: mfoo0 which parses as: m/foo/ 0 being written as: mfoo»0 And that's blatantly of no use to anybody. Smylers

Re: Angle quotes and pointy brackets

2004-11-25 Thread Smylers
Terminal', but isn't as nice as the 'Vim' digraphs.) Smylers

Re: Backticks (was: Angle quotes and pointy brackets)

2004-11-29 Thread Smylers
it, backsticks for qx, unless elsewhere declared gone, are still there. Although Larry did end by saying that qx probably needs to be completely rethought anyway, so it's quite possible that even though C`` have been left on the side they don't actually get used when putting this thing back together. Smylers

Re: Angle quotes and pointy brackets

2004-11-29 Thread Smylers
shells. I've got a sufficient Unix background that I find it awkward to use Windows, and I completely agree with you. Also, there are many instances of people using backticks or Cqx when what they meant was Csystem. Smylers

Re: Angle quotes and pointy brackets

2004-11-29 Thread Smylers
Juerd writes: For oneliners, I think I'd appreciate using -o for that. The module itself can be Perl::OneLiner. Things the module could do: * disable the default strict The C-e flag indicating the one-liner disables Cstrict anyway. Smylers

Re: qq:i

2004-11-30 Thread Smylers
a new variable with a name that hasn't been used anywhere else -- because there was some code relying on that variable _not_ being defined? Ouch. Smylers

Re: Angle quotes and pointy brackets

2004-11-30 Thread Smylers
who like autoquoting, there's now a different syntax, one that doesn't interfere with the above syntax at all. You don't have to use it if you don't want to, and everybody's happy! Smylers

Re: Angle quotes and pointy brackets

2004-12-01 Thread Smylers
to the previous scheme -- I'm sure it'd be received better by those people who are yet to meet any Perl 6 at all). Smylers

Re: Angle quotes and pointy brackets

2004-12-01 Thread Smylers
manner. So the double-quotes in there are shell-like, though I guess if you don't have a Unix background that doesn't mean much to you. (Post again if that's the case -- I have to leave for work now, but I'm sure somebody here will be able to explain.) Smylers

Re: Angle quotes and pointy brackets

2004-12-01 Thread Smylers
Matthew Walton writes: Pair notation is, as I understand it, when you get key = value That can now also be written as: :keyvalue or, where value is 1, simply as: :key I suspect it was this form that Larry was referring to. Smylers

Re: pull put (Was: Angle quotes and pointy brackets)

2004-12-04 Thread Smylers
of functions seems minor. Smylers

Re: pull put (Was: Angle quotes and pointy brackets)

2004-12-05 Thread Smylers
beam to the sensor, which triggers the motor, and all the other items get pulled along too, moving one place along. Smylers

Re: specifying the key Type for a Hash

2004-12-05 Thread Smylers
the one he/she wants to use, but then it turns out you need to learn all of them so as to read other people's code, and that's worse than not having them at all. 'MySQL' is riddled with them, and they're most inconvenient! Smylers

Re: pull put (Was: Angle quotes and pointy brackets)

2004-12-06 Thread Smylers
David Green writes: I guess we could always use prepend/append, pull/pop. No! Cpush and Cpop are a well-defined pair, not just in Perl, for dealing with stacks; we should keep those as they are. (And no synonyms, before somebody suggests any!) Smylers

Re: while Idiom (Was: Arglist I/O)

2004-12-06 Thread Smylers
. Smylers

Re: iterators and functions (and lists)

2004-12-06 Thread Smylers
Larry Wall writes: As far as I can recall we haven't renamed C.specs to anything else yet. That sounds like a challenge ... Smylers

Re: Classes with several, mostly unused, attributes

2004-12-16 Thread Smylers
be avoided. Smylers

Re: sub my_zip (...?) {}

2005-06-16 Thread Smylers
would expect being able to pipe into subscripts at all. Except that you've almost certainly thought about this more than I have, and you are rather good at this language design lark -- so I'm also not convinced by my own criticism of this feature ... Smylers

Re: A shorter long dot

2006-05-01 Thread Smylers
that a problem? Folks want to be able to line stuff up, and to split statements over multiple lines. This is now possible. Smylers

Re: normalized hash-keys

2006-05-08 Thread Smylers
for the Perl 5 CFETCH and CRESTORE subs. Smylers

Re: Scans

2006-05-09 Thread Smylers
. But this could just be because I don't (yet) grok scans. Smylers

Re: Scans

2006-05-09 Thread Smylers
Markus Laire writes: On 5/9/06, Smylers [EMAIL PROTECTED] wrote: But this could just be because I don't (yet) grok scans. Here's a simple example: [+] 1,2,3,4,5 would return scalar 1+2+3+4+5 as a reduction and list (0, 1, 1+2, 1+2+3, 1+2+3+4, 1+2+3+4+5) as a scan. That doesn't help

Re: Scans

2006-05-09 Thread Smylers
Gaal Yahas writes: On Tue, May 09, 2006 at 11:23:48AM +0100, Smylers wrote: So I have the list generated by the scan. And? What do I do with it? I can't think of any situation in my life where I've been wanting such a list. Scans are useful when the intermediate results

Re: Scans

2006-05-09 Thread Smylers
Mark A. Biggar writes: Austin Hastings wrote: Gaal Yahas wrote: list [==] 0, 0, 1, 2, 2; # bool::false? # (bool::true, bool::true, bool::false, bool::false, bool::false) (And I'm with Smylers on this one: show me a useful example, please.) Well the above

Re: Provisional Foo [Was: [svn:perl6-synopsis] r9176 - doc/trunk/design/syn]

2006-05-11 Thread Smylers
this special case outweighs any benefit it brings. Smylers

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

2006-05-11 Thread Smylers
, because they only indicate where _some_ space has to be, not that it has to be exactly that sort of space. What about :gappy, to indicate that there have to be gaps in the source text at the points where there are gaps in the pattern? Smylers

Re: Perl5 - Perl 6 Translations Design Document

2006-06-07 Thread Smylers
on this mailing list; it makes it much harder for people who wish to follow up on what was said earlier in the thread to provide context for exactly what they're commenting on. Smylers

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

2006-07-12 Thread Smylers
is probably only confuses the casual reader. Smylers

Re: ===, =:=, ~~, eq and == revisited (blame ajs!) -- Explained

2006-07-14 Thread Smylers
over. If we're going to have 5 of the things in Perl 6 then there needs to be a very clear way of explaining how to determine which one to use (or at least an explanation that 3 of the operators are very esoteric and beginners don't need to worry about them). Smylers

Re: ===, =:=, ~~, eq and == revisited (blame ajs!) -- Explained

2006-07-14 Thread Smylers
Yuval Kogman writes: On Fri, Jul 14, 2006 at 11:42:24 +0100, Smylers wrote: Or rather, while I can manage to read an explanation of what one of these operators does and see how it applies to the variables in the examples next to it, I am struggling to retain a feeling of _why_ I would

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

2006-07-19 Thread Smylers
no verb, a grammatical error. Smylers

Re: S04 - forbidden coding-style

2006-07-20 Thread Smylers
the closing brace: loop { ... }\ while $x; That still has the keywords and the braces aligned. Smylers

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

2006-07-21 Thread Smylers
[EMAIL PROTECTED] writes: s/loop/repeat/ for test-after loops Yay! That makes things very clear, with different things looking nicely different. Smylers

Re: ===, =:=, ~~, eq and == revisited (blame ajs!) -- Explained

2006-08-13 Thread Smylers
On July 14th Yuval Kogman wrote: On Fri, Jul 14, 2006 at 11:42:24 +0100, Smylers wrote: I'm afraid I still don't get it. Or rather, while I can manage to read an explanation of what one of these operators does and see how it applies to the variables in the examples next to it, I am

Re: ===, =:=, ~~, eq and == revisited (blame ajs!) -- Explained

2006-08-15 Thread Smylers
David Green writes: On 8/13/06, Smylers wrote: Please could the proponets of the various behaviours being discussed here share a few more concrete examples ... OK, Thanks for that. In summary, if I've understood you correctly, it's that: =:= two aliases to the same actual variable

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

2006-08-28 Thread Smylers
[EMAIL PROTECTED] writes: New Revision: 11504 doc/trunk/design/syn/S02.pod +C ('foo','bar') . Since parentheses are generally reserved just for +precedence grouping, they merely autointepolate in list context. Therefore Typo: autointepolate. Smylers

Re: renaming grep to where

2006-09-19 Thread Smylers
properly, not half-heartedly with an alias. Smylers

Re: renaming grep to where

2006-09-19 Thread Smylers
not that bothered either way myself), but just some points to bear in mind and reasons to be cautious. Smylers

Re: renaming grep to where

2006-09-19 Thread Smylers
Randal L. Schwartz writes: Smylers == Smylers [EMAIL PROTECTED] writes: Smylers No: no aliases. Perl does not have a tradition of these, except for/foreach. :) I don't reckon one instance is enough to be labelled a tradition! (Um ... actually I forgot about that one. But if I had

Re: Capture sigil

2006-09-20 Thread Smylers
Larry Wall writes: Conjecture: We need a corresponding sigil to request captureness. As Bikeshed: What should that sigil be? What's * doing these days? Smylers

Re: Don't tell me what I can't do!

2006-10-02 Thread Smylers
: it's _you_ that's forbidding things that are otherwise legal in your code; you can choose whether to do it or not. Jonathan's examples were all of _somebody else_ forbidding you from doing otherwise-legal things; you have this imposed on you without choice. Smylers

Re: Don't tell me what I can't do!

2006-10-07 Thread Smylers
in your program then it is lexically scoped and only affects your code, not that of other files you load in. C-w does affect all files, but that's one of the reasons why Cuse warnings is an improvement over C-w, because it lets the author of each bit of code have control over it. Smylers

Re: S5: substitutions

2006-10-08 Thread Smylers
expected to be a string. Not a good trap to have in the language. Smylers

Re: S5: substitutions

2006-10-08 Thread Smylers
Jonathan Lang writes: Smylers wrote: Jonathan Lang writes: Translating this to perl 6, I'm hoping that perl6 is smart enough to let me say: s(pattern) { doit() } Instead of s(pattern) { { doit() } } That special case is nasty if you don't know about

Re: Synposis 26 - Documentation [alpha draft]

2006-10-16 Thread Smylers
Smylers

Re: Don't tell me what I can't do!

2006-10-16 Thread Smylers
Trey Harris writes: In a message dated Wed, 4 Oct 2006, Smylers writes: Trey Harris writes: T I remember not so many years ago when there were a lot of modules floating around that required you to do no strict of various flavors in order to use them. Really? How? I wrote

Re: Programming languages and copyright?

2006-10-23 Thread Smylers
programming languages. Yes, but not from the source of their implementation. (At least, not from the source of any which don't have a licence explicitly permitting doing so.) Smylers

Re: set operations for roles

2006-10-23 Thread Smylers
it to work exactly opposite to how it does. It doesn't really matter which way is right -- merely having some people on each side, all naturally deriving what makes sense to them -- shows that implementing this would cause much confusion. Smylers

Re: generic ordinal-relevant operators

2006-11-13 Thread Smylers
? (Is it even a safe assumption to make about Perl 5?) Note further that in infinite precision the arithmetic shift left maintains the sign ... Do we expect Perl 6 to be running on infinite-precision systems? Smylers

Re: named sub-expressions, n-ary functions, things and stuff

2006-11-13 Thread Smylers
it is it any different from the functional version -- labels being associated with intermediate parts of the calculation? Smylers

Re: generic ordinal-relevant operators

2006-11-16 Thread Smylers
often enough in Perl 5 classes, and I'm almost certain there are no plans to remove it from Perl 6. Smylers

Re: Set-returning .keys

2006-11-28 Thread Smylers
. Modification of a Set is more complex than modification of a Bag, so in that sense the Bag is the main type. Is this still the Perl 6 _Language_ group? The one where we consider what Perl 6 will do, and leave the implementation details to others? Smylers

Re: beg for Bag

2006-11-28 Thread Smylers
TSa writes: I want to propose the addition of a Bag type Different from the CBag that's already mentioned in Synopsis 3? Smylers

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

2006-11-29 Thread Smylers
Set members identicalmatch if $_ === $x +Hashany(Hash) hash key intersectionmatch if exists $_{any(Hash.keys)} Should that last one have a C$x in the code somewhere? Smylers

Re: supertyping

2006-12-13 Thread Smylers
Jonathan Lang writes: For the record, I think that superdoes should be spelled done_by. I think it's unlikely that Larry will incorporate any keywords that contain underscores -- certainly not without at least searching for a single word that sums up the concept in question. Smylers

Re: supertyping

2006-12-14 Thread Smylers
unlikely that the syntax is final if the feature is only being mooted as might be possible (and the rest of Larry's message wasn't exactly enthusiastic about the idea). Smylers

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

2006-12-20 Thread Smylers
they finally meet it. Smylers

Re: Numeric Semantics

2007-01-15 Thread Smylers
available as modules. Presumably people who need this stuff in Perl 5 have already created Cpan modules providing them, and the same will happen in Perl 6. Smylers

Re: Numeric Semantics

2007-01-22 Thread Smylers
' 49.5 How would you get the current Perl 5 behaviour of displaying fractional parts if they exist and not if they don't? Smylers

Re: Numeric Semantics

2007-01-22 Thread Smylers
Larry Wall writes: The default / operator is not going to do integer division. Yay! This is not negotiable; Double-yay! Whether a Num that happens to be an integer prints out with .0 is a separate issue. My bias is that a Num pretend to be an integer when it can. Triple-yay! Smylers

Re: Numeric Semantics

2007-01-24 Thread Smylers
could be loadable from a module. I still reckon a single type of division is sufficient in core, with everything else in modules. Smylers

Re: Numeric Semantics

2007-01-24 Thread Smylers
TSa writes: Smylers wrote: I'd much prefer for introductory Perl books not to have to explain what Euclidean means. Yeah, it will not dive into the exact reasons why the floor definition was chosen, either. Sure, if we _only_ have floor (or indeed if we _only_ have one of the others

Re: Remember: Outlaw to declare a lexical twice in the same scope

2007-01-27 Thread Smylers
Carl Mäsak writes: my $foo; # ...later in the same scope... my $foo; # illegal Perl5, legal Perl6 That isn't illegal in Perl 5. It yields the warning: my variable $foo masks earlier declaration in same scope but it does work. Smylers

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

2007-02-02 Thread Smylers
for a better name.) Smylers

Re: Negative array subscripts

2007-02-06 Thread Smylers
via a Perl use pragma. Hmmm, a pragma's a bit heavyweight for this; how about being able to set this with a special global variable -- that sure sounds handy ... Smylers

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

2007-02-12 Thread Smylers
rather ugly, exactly the sort of awkwardness that Perl 6 is eliminating elsewhere. Smylers

Re: Negative array subscripts

2007-02-13 Thread Smylers
Jonathan Scott Duff writes: On 2/6/07, Smylers [EMAIL PROTECTED] wrote: Blair Sutton writes: David Green wrote: In some ways, I like not having a [0] index at all: programmers may be used to counting from zero, but normal humans start with first, second, third, ... third

Re: my $temperature is ro

2007-02-16 Thread Smylers
? Would you also be able to declare a separate (presumably read-write) variable, C$temperature in the same scope as C$-temperature? Smylers

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

2007-02-17 Thread Smylers
) {...} +Those are a bit unwieldy, so you may also use these short forms: + +method .( |$capture ) {...} +method @.[ *@@slices ] {...} +method %.{ *@@slices } {...} Did you mean for whats inside the brackets to differ between the long and short forms for arrays and hashes? Smylers

Re: What criteria mark the closure of perl6 specification

2007-02-25 Thread Smylers
to be. And at least some of us are trying to discourage such things, hoping to deflect them away from taking Larry's time away from getting finished synthesizing what we already have -- especially in the case of things which could easily be provided by a module. Smylers

Re: What criteria mark the closure of perl6 specification

2007-02-25 Thread Smylers
Jonathan Lang writes: Smylers wrote: Richard Hainsworth writes: When does the specification of perl6 come to an end? At a guess: when it's implemented. Many of the recent changes have been made by Larry in response to his trying to write the grammar, and encountering

Re: request new Mapping|Hash operators

2007-02-27 Thread Smylers
that being in a module doesn't (necessarily) mean 'not distributed with core Perl'. 1. join() aka natural_join(): Remember that Perl already has a Cjoin function, for joining strings. Smylers

Re: Bit shifts on low-level types

2007-02-27 Thread Smylers
operators exist it looks pretty arbitrary which is which. For this esoteric sort of stuff can't we have named operators (short names if you like, perhaps taken from assembly language), in a module that can be loaded by those who need them? Smylers

Re: for ... else

2007-03-04 Thread Smylers
to the Cif but only be activated if none of the. Larry's suggestion of using Cfirst for this looks good. Smylers

Re: for ... else

2007-03-04 Thread Smylers
into very nested data structures, whatever) could be tedious. Repetition is certainly poor style and makes the code more prone to errors being introduced. Also, it relies on the contents of C@rray not being cleared inside the loop. Smylers

Re: request new Mapping|Hash operators

2007-03-07 Thread Smylers
why loading a module would be too much of a burden. In conclusion, I consider functionality like relational-join to provide considerable conciseness to very common data processing operations Are there Cpan modules in existence for doing this kind of thing in Perl 5? Smylers

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

2007-03-08 Thread Smylers
on the text it isn't a recent change; my apologies for not spotting it earlier. Smylers

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

2007-03-08 Thread Smylers
are permitted, rather than literal values. Smylers

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

2007-03-09 Thread Smylers
Larry Wall writes: On Thu, Mar 08, 2007 at 09:05:32AM +, Smylers wrote: : So I fear that people will do the same thing in Perl 6. Which, : initially, will appear to work. But then, some months later, : somebody upgrades the installed version of a module (or the program : gets

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

2007-03-12 Thread Smylers
append to something that isn't there? Would it matter if the first feed also had a double pointy bracket on it? Smylers

Re: Should a dirhandle be a filehandle-like iterator?

2007-04-14 Thread Smylers
, many programmers would surely continue to use Copen for this. Users being able to trick such programs into opening a directory rather than a file could be unpleasant. Smylers

Re: List Archives Link Broken

2007-04-20 Thread Smylers
the link is one-way, and that posting using the Google Groups interface doesn't result in your mail reaching the list elsewhere.) Smylers

Re: Should a dirhandle be a filehandle-like iterator?

2007-05-01 Thread Smylers
to open something but doesn't know wether that thing is a file, a directory, or a URL? I'm still unpersuaded this is sensible default behaviour. Smylers [Apologies for the delay on this; I first tried to send it on April 15th, and only just spotted it failed to get through.]

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

2007-05-30 Thread Smylers
, the current name is good: it has the convenient mnemonic of being the name that people object to ... Smylers

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

2007-06-12 Thread Smylers
-- and are inspired way of avoiding surprising people just putting hashes at the beginning of all their lines of code. Smylers

Re: = at Start of Line ([svn:perl6-synopsis] r14421 - doc/trunk/design/syn)

2007-06-16 Thread Smylers
are much less likely to be bothered to do. Smylers

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

2007-06-16 Thread Smylers
, but in the absence of a good reason it's expected that they be used). Smylers

Re: Quirky comments

2007-06-21 Thread Smylers
, but is *not* considered Pod by the Perl 6 parser. And I think that's just fine. I like it! Is that a decision yet, or were you just thinking out loud? Smylers

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

2007-06-21 Thread Smylers
Mark Overmeer writes: * Smylers ([EMAIL PROTECTED]) [070616 09:09]: You're concerned that an aspect of Perl 6 might have too much freedom? Isn't Perl all about giving users freedom to choose their own way of doing something? Why treat documentation as a second-class citizen all

Re: Web Module (Was: Perl6 new features)

2007-06-21 Thread Smylers
entirely possible that during Perl 6's life somebody, possibly somebody who at the moment hasn't even heard of Perl 6, will create a better web module. It would be good if at that point it becomes straightforward for it to get acceptance and people to adopt it. Smylers

Re: = at Start of Line ([svn:perl6-synopsis] r14421 - doc/trunk/design/syn)

2007-06-21 Thread Smylers
brian d foy writes: In article [EMAIL PROTECTED], Smylers [EMAIL PROTECTED] wrote: brian d foy writes: In article [EMAIL PROTECTED], Damian Conway [EMAIL PROTECTED] wrote: No. It's Pod. *Any* line that begins with '=begin' always starts a Pod block. Always

Re: Referring to source code within Perldoc: the new A code

2007-06-21 Thread Smylers
there is no paragraph or delimited form of the C=encoding directive (just as there is no paragraph or delimited form of C=begin). I was with you right up until the mention of C=encoding; what's that got to do with anything? Smylers

Re: Web Module (Was: Perl6 new features)

2007-06-21 Thread Smylers
Darren Duncan writes: At 6:37 PM +0100 6/21/07, Smylers wrote: Web module? This is the first I've heard of it. Where is it being planned, if not on this list? It was being discussed on the perl6-users list, last year. Thanks. Smylers

Re: Referring to source code within Perldoc: the new A code

2007-06-21 Thread Smylers
reached the code you already know what it's supposed to be doing) -- but I'm not adamant about continuing with this style. Smylers

Re: Referring to source code within Perldoc: the new A code

2007-06-21 Thread Smylers
documentation then I can read, browse, and search that documentation on its website without needing to upgrade any of my computers. Smylers

<    1   2   3   >