Re: can a method name contain a funny character?

2016-05-21 Thread Larry Wall
know) which way the user will want to use these, so the conservative approach is to make neither of them work, and let the user take an additive approach, rather than forcing them to use a subtractive approach if we guessed wrong. Larry

Re: state statements versus state expressions

2012-09-20 Thread Larry Wall
somewhat diffusely. Larry

Re: [perl6/specs] d9d8b3: refactor case mappings (again)

2012-07-30 Thread Larry Wall
On Tue, Jul 24, 2012 at 09:42:10PM +0100, Smylers wrote: : GitHub writes: : : https://github.com/perl6/specs/commit/d9d8b35825f7abf07a9314fd90b0b5563253bd15 :Author: Larry Wall la...@wall.org : : There is no more titlecase function. Instead there is a suite : of mapping functions

Re: How to make a new operator.

2012-03-24 Thread Larry Wall
On Fri, Mar 23, 2012 at 07:14:51PM +1100, Damian Conway wrote: : For example: : : 1, 1.0001, 1.0002 ... * : : won't deduce a correct arithmetic sequence either (on most hardware). Actually, that one works fine in both niecza and rakudo, since those are Rats. Larry

Re: eval and try should be separate

2011-06-30 Thread Larry Wall
Given that try can be used with a statement as well as a block, I'm fine with this. We want to discourage people from using eval anyway, so forcing people to use 'try eval' to get p5 behavior is okay too. Larry

Re: Perl6 regexes and UTS#18

2011-02-09 Thread Larry Wall
are implemented (and which not) : in which version of Unicode. We can certainly use a lot more work on the details, but the intent should be clear that we want Perl 6 to be support world-class Unicode. Larry

Re: base-4 literals

2010-11-16 Thread Larry Wall
for bases 2,8,16,10. : : You're joking, right? : : No, its a serious idea, just not so conventional. -- Darren Duncan The lack of base 4 numbers in Real Life seems to me to justify the convention. Do you have a use case? Larry

Re: requiring different vers per auth

2010-09-10 Thread Larry Wall
is compatible with different : version ranges from each authority, then how does the code express : this? Search for emulates in S11. Larry

Re: Suggested magic for a .. b

2010-07-21 Thread Larry Wall
be written 3 ~~ (0...4). :-) Larry

Re: Command-line args (weekly contribution to P6)

2010-05-26 Thread Larry Wall
it's implemented, and plays nice in alternations, LTMishly speaking. Larry

Re: eqv and comparing buts

2010-05-26 Thread Larry Wall
type, : but I don't know how feasible that is. Or going the other direction, perhaps we're missing a primitive that can produce a data structure with the type information stripped, and then eqv might be able to determine structural equivalence between two canonicalized values. Larry

Re: Parallelism and Concurrency was Re: Ideas for a Object-Belongs-to-Thread threading model

2010-05-14 Thread Larry Wall
. And that is why threading of *any* kind will work much better in Perl 6. Larry

Re: Ideas for a Object-Belongs-to-Thread threading model

2010-05-11 Thread Larry Wall
Since I don't think BrowserUK subscribes here, I'll paste in the remarks he attached to your earlier paste, just to help get the discussion going, and on the assumption this will not be regarded as antisocial. :) Larry BrowserUK wrote: -there are the interpreter processes. Inventing

Re: a more useful srand (was Re: r30369 - docs/Perl6/Spec/S32-setting-library)

2010-04-14 Thread Larry Wall
that dumped as much of the internal state of the OS as possible (including various fast-changing internal tables), and then hash that. In strength it was probably somewhere between /dev/random and /dev/urandom. Larry

Re: a more useful srand (was Re: r30369 - docs/Perl6/Spec/S32-setting-library)

2010-04-12 Thread Larry Wall
left over for next week. Larry

Re: underscores vs hyphens (was Re: A new era for Temporal)

2010-04-12 Thread Larry Wall
between Damian and Damien, at least in Levenshtein distance. Larry

Re: A common and useful thing that doesn't appear to be easy in Perl 6

2010-04-07 Thread Larry Wall
assignment. I've been thinking of switching enums to this form for some time, and this may tip me over the edge. (Presuming of course that I wasn't tipped over the edge many years ago...) Larry

Re: A common and useful thing that doesn't appear to be easy in Perl 6

2010-04-06 Thread Larry Wall
from there. Or maybe the membership ops such as ∋ can just be smart about such bitwise members. Larry

Re: A common and useful thing that doesn't appear to be easy in Perl 6

2010-04-06 Thread Larry Wall
On Tue, Apr 06, 2010 at 10:19:15PM -0700, Damian Conway wrote: : Larry concluded: : : I do freely admit that most Perlfolk are not used to thinking of : permissions in terms of set theory.  But as I said, we're looking at : kind of a strange use case here, and perhaps not typical of the kinds

Re: r29931 - docs/Perl6/Spec

2010-03-13 Thread Larry Wall
write that as: $foo + ($bar)i but that could be construed as clunkier. Or at least more typing. Larry

Re: Functional-style pattern matching

2010-03-09 Thread Larry Wall
version of the specs, use svn to checkout http://svn.pugscode.org/pugs and then look in docs/Perl6/Spec. Larry

Re: r29976 - docs/Perl6/Spec

2010-03-09 Thread Larry Wall
in Algol W on a Burroughs machine once, long, long ago in a galaxy far away... Larry

Re: continuation markers for long literals (was Re: r29931 - docs/Perl6/Spec)

2010-03-03 Thread Larry Wall
. :) Larry

Re: Temporal seems a bit wibbly-wobbly

2010-02-21 Thread Larry Wall
On Sat, Feb 20, 2010 at 06:20:22PM -0800, Steve Allen wrote: : On Feb 19, 10:30 pm, la...@wall.org (Larry Wall) wrote: : 2000 would have been a lovely epoch if only the astronomers had kept : their grubby hands off of civil time. : : The astronomers might love to have the power to control

Re: Temporal seems a bit wibbly-wobbly

2010-02-21 Thread Larry Wall
of progress... Larry

Re: Temporal seems a bit wibbly-wobbly

2010-02-19 Thread Larry Wall
that accommodation, since POSIX time is blissfully unaware of leap seconds... Sorry, you pushed one of my hot buttons. Grrr! :) Larry

Re: [perl #72914] [BUG] Rakudo doesn't treat ^$n at the end of an infix:... right

2010-02-18 Thread Larry Wall
1,1,[+] ... * # fib And if we see 1,2,4 ... * we can assume it means 1,2,4,* ... * Likewise 1,2,4 ... 256 would really mean 1,2,4,* ... 256 Maybe I like it. Larry

Re: Spec: Syntax Suggestion

2010-02-14 Thread Larry Wall
doing this for almost ten years now, you need to be aware that almost anything you might suggest has a good chance of having been discussed several times before. :-) Larry

Re: One-pass parsing and forward type references

2010-02-02 Thread Larry Wall
On Mon, Feb 01, 2010 at 06:12:16PM -0800, Jon Lang wrote: : Larry Wall wrote: : But also note that there are several other ways to predeclare : types implicitly.  The 'use', 'require', and 'need' declarations : all introduce a module name that is assumed to be a type name. : : Just to clarify

Re: One-pass parsing and forward type references

2010-02-01 Thread Larry Wall
than CATCH time. Hope this helps, or I just wasted a lot of time. :-) Larry

Re: One-pass parsing and forward type references

2010-02-01 Thread Larry Wall
On Mon, Feb 01, 2010 at 10:10:11AM -0800, yary wrote: : A slight digression on a point of fact- : : On Mon, Feb 1, 2010 at 9:32 AM, Larry Wall la...@wall.org wrote: : ... : You are correct that the one-pass parsing is non-negotiable; this is : how humans think, even when dealing with unknown

Re: One-pass parsing and forward type references

2010-02-01 Thread Larry Wall
mean it really. Pretty much the same reason we changed is also to augment. We want to look up the name right now and know whether it should exist without doing lookahead. Larry

Re: One-pass parsing and forward type references

2010-02-01 Thread Larry Wall
the standpoint of the *user* of the module. Module creators, on the other hand, should be acquainted with the concept of vicarious suffering before they begin. Larry

Re: Counting characters

2010-01-27 Thread Larry Wall
as elegant... Hmm, what might be more elegant? Maybe something like... [+] $str.comb.BagC G; Probably does too much work building the Bag though, unless it can be lazy somehow. But the point is that Bags are really just histograms with a cute name. Larry

Re: Custom errors on subsets?

2010-01-05 Thread Larry Wall
on the parameter of an only sub is already mandatory, not discretionary, at least in the sense that the call will fail if the binding is unsuccessful. So that probably falls out naturally, though perhaps loses track of the failure message currently.) Larry

Re: r29326 - docs/Perl6/Spec/S32-setting-library

2009-12-11 Thread Larry Wall
of bare 'print'; in Perl 6 please use .print if you want to print $_, or use an explicit argument at (eval) line 1: -- for @list { print⏏ } Larry

Re: deprecated (was Re: r29143 ...)

2009-11-20 Thread Larry Wall
I'm writing a *real* spec. :) Larry

Re: r29121 - docs/Perl6/Spec

2009-11-18 Thread Larry Wall
by default and only failover to Num if .perl would produce the 1/3 form. In the absence of an explicit format, I think exactness should trump limiting the size of the resulting string arbitrarily. Larry

Re: r28751 - docs/Perl6/Spec

2009-10-12 Thread Larry Wall
juxtaposion of semicolon, which leaves the reader to work out the relationship. Larry

Re: in list context

2009-09-30 Thread Larry Wall
that waits until binding time to decide how to behave. But I agree that it's a trap of sorts. My gut feeling is that it won't happen often enough to become a FAQ, but I could be wrong. Larry

Re: [perl #69194] rakudo 2009-08 and when with lists

2009-09-20 Thread Larry Wall
to expect that values that fall between your iterations will : match. Yes, I think it's fair to say that either list context OR a :by turns a Range into a RangeIterator that matches like a list. Hence, this ought to match: (1,3,5) ~~ (1..5 :2by) Larry

Re: Synopsis 02: Range objects

2009-08-27 Thread Larry Wall
. Larry

Re: Synopsis 02: Range objects

2009-08-25 Thread Larry Wall
for numbers that aren't too far off the beaten path, where on the beaten track is defined as rats that fit into a pair of int64s or so, that is, which can be represented with rat64. Larry

Re: S05 (regex) Q: after

2009-08-10 Thread Larry Wall
definition of $~MAIN is than it would have to look for $~Regex. But all the ~ twigil variables are working together to define the current lexical scope's language in an interwoven fashion. Which is why we call it a braid of languages. Larry

Re: Rukudo-Star = Rakudo-lite?

2009-08-10 Thread Larry Wall
Rakudo Zengi would be the most (in)appropriate, I think. Larry

Re: confusing list assignment tests

2009-07-28 Thread Larry Wall
discarded by the inner list assignment.. Larry

Re: confusing list assignment tests

2009-07-28 Thread Larry Wall
On Tue, Jul 28, 2009 at 01:22:28PM -0700, Jon Lang wrote: : Larry Wall wrote: : Moritz Lenz wrote: : : Either it's parsed as '@a[0] = (W, W)' (list assignment), then @a should : : get both elements, and so should @z. : : Not according to S03, at least by one reading. �...@a[0] as a scalar

Re: confusing list assignment tests

2009-07-28 Thread Larry Wall
as if I'd said: $a = 42; $b = [1,2,3]; $c = { foo = 1, bar = 2, baz = 3 }; @a = $a, $b, $c; Larry

Re: Parameter binding

2009-07-27 Thread Larry Wall
hoping this will make Perl 6 usable by non-geniuses without getting them into trouble too terribly often. :) But certainly a lot of the get-into-trouble examples involve $x++, so we'll need to be careful with that particular monad^Wside effect. Larry

Re: r27635 - docs/Perl6/Spec

2009-07-20 Thread Larry Wall
and not chaining In short, chaining is a good concept, but non-chaining is bad (and doubly bad when it means two different things). Larry

Re: YAPC::EU and Perl 6 Roles

2009-07-08 Thread Larry Wall
to go debug why you're still using the base-class (or role) version of the method. Note we already have syntax that can be applied here: supersede method fuse {...} augment method fuse {...} It only remains to spec what those mean... :) Larry

Re: XOR does not work that way.

2009-07-03 Thread Larry Wall
for too little payback. Larry

Re: r27312 - docs/Perl6/Spec

2009-07-03 Thread Larry Wall
... Larry

Re: Multi-d array transforms (was Re: Array rotate)

2009-06-13 Thread Larry Wall
of GC, build a new one with the appropriate structure, then copy values in from the assignment's RHS. The only reason Perl 5 couldn't do it this way is that the idiot who wrote it prematurely optimized values on the stack so that they didn't need to be reference counted. :) Larry

Re: Multi-d array transforms (was Re: Array rotate)

2009-06-12 Thread Larry Wall
.push is really sugar for .=append, and unshift is really sugar for .=prepend. Larry

Re: Array Dimensionality (Was: Re: Multi-d array transforms (was Re: Array rotate))

2009-06-12 Thread Larry Wall
]; @a[] = 1,2,3; Larry

Re: Multi-d array transforms (was Re: Array rotate)

2009-06-12 Thread Larry Wall
more likely to define them as sugar for the more general list operators: .push means .=append .unshiftmeans .=prepend .splice means .=impend:-) or some such. Larry

Re: Assigning duplicate values to several hash keys using junctions?

2009-06-08 Thread Larry Wall
implemented and do too much busywork. Apart from that, it's gonna come down primarily to what you think is readable. By the way, infix hypers want to go on both sides, like this: %hashfoo bar »=» 'some value'; Larry

Re: say followed by lines - inconsistencies

2009-06-08 Thread Larry Wall
, for a minimal serialization format. Or write your own explicit formatting and serialization using .fmt calls. Larry

Re: Anonymous multidimensional array

2009-06-02 Thread Larry Wall
unless explicitly defeated. That is to say, if you erase the capture shape by putting the value into list context, it linearizes it, and then the container knows to reshape. Otherwise the container attempts to use the value slicily. Larry

Re: Amazing Perl 6

2009-06-01 Thread Larry Wall
between snowman and snow? (By the way, if you know any 日本人 named Yuki, they probably write their name with 雪. Which is a really cool (no pun intended) character--if you look at the two radicals, it basically means precipitation you can grasp. :) Larry

Re: Anonymous multidimensional array

2009-06-01 Thread Larry Wall
into structure is basically what @@/slice context is for. Larry

Re: renaming or adding some operators

2009-05-30 Thread Larry Wall
On Fri, May 29, 2009 at 11:06:46PM -0700, Darren Duncan wrote: Larry, did you choose = for assignment and == etc for comparison because you thought that looked prettier, or because that was the C/etc convention that you decided to copy? Neither beauty nor convention, really. I chose

Re: renaming or adding some operators

2009-05-30 Thread Larry Wall
kind of completist agenda, which you know can never entirely satisfy the mathematicians. :) Larry

Re: renaming or adding some operators

2009-05-30 Thread Larry Wall
the possible operators in non-strict mode, and turn on the mode where methods can be specified by the first few unique characters, and maybe turn off mandatory whitespace in a few spots. :) Larry

Re: renaming or adding some operators

2009-05-30 Thread Larry Wall
perfectly fine to *use* a hash as if it were a set. Larry

Re: CPAN -- moving forward

2009-05-30 Thread Larry Wall
to call the other. Larry

Re: renaming or adding some operators

2009-05-30 Thread Larry Wall
to influence the parse of its right argument. This is overkill for a mere alias. We may need to distingish single-token substitution macros from macros that govern the ASTs around them in order to make such operator canonicalization painless, I think. Larry

Re: Amazing Perl 6

2009-05-29 Thread Larry Wall
. (though I often use ^K in vim). Larry

Re: New CPAN

2009-05-29 Thread Larry Wall
, but originally Perl succeeded because it *connected* with everything else it could, not because it was trying to be an island to itself. Perl was never supposed to be about drawing boundaries. Larry

Re: New CPAN

2009-05-29 Thread Larry Wall
: Biologist: What could possibly be worse than a velociraptor? Physicist: Obviously, an acceloraptor. Long term, acceloraptors tend to beat out velociraptors. Perl 6 is all about being an acceloraptor. :) Larry

Re: Amazing Perl 6

2009-05-29 Thread Larry Wall
(DeeDee Ramone); : say @x.splice(2,4).join(',') : c,DeeDee,Ramone,f That qw is not a good example of what still works, since it is supposed to be interpreted as a qw subroutine (rakudo bug). I recommend square brackets instead. Larry

Re: Feature request: Grammar debugging support

2009-05-29 Thread Larry Wall
Can't help you with PGE, but STD supports a trace facility by setting the STD5DEBUG environent variable to -1, or a set of bits defined in src/perl6/Cursor.pmc in the pugs repo. Note the log uses ANSI color, so you might want to use less -R or some such. Larry

Re: Amazing Perl 6

2009-05-29 Thread Larry Wall
for a large graphic in several fonts. Or feed it as an argument to this program, whereupon it will tell you directly which character it is. Larry #!/usr/bin/perl -C binmode STDOUT, :utf8; $pat = @ARGV; if (ord $pat 256) { $pat = sprintf(%04x, ord $pat); print That's $pat...\n; $pat = '\b

Re: Amazing Perl 6

2009-05-28 Thread Larry Wall
is that everyone can process Unicode, so it's fine to write */⍳n. :) Note that that's the APL iota U+2373, not any of the other 30 or so iotas in Unicode. :/ Well, okay, half of those have precomposed accents, but still... Larry

Re: Amazing Perl 6

2009-05-28 Thread Larry Wall
, or as the short name of the function when prefixed by the noun marker . Note that when you say func() you are, in fact, using the noun func as a verb. Anyway, I suspect people are generally pretty good at differentiating such things from the visual context. Larry

Re: Amazing Perl 6

2009-05-28 Thread Larry Wall
mean? Larry

Re: Amazing Perl 6

2009-05-28 Thread Larry Wall
by its similarity to = and such. Larry

Re: Amazing Perl 6

2009-05-28 Thread Larry Wall
On Thu, May 28, 2009 at 03:33:34PM -0400, Mark J. Reed wrote: : On Thu, May 28, 2009 at 3:13 PM, Larry Wall la...@wall.org wrote: : :  I mean, prefix ops can be used in reduce, too, right? : : I will let you ponder the meaning of reduce a bit more, and the : relationship

Re: [RFC] CPAN6 requirements analysis

2009-05-28 Thread Larry Wall
to extract up front reliably, that's probably sufficient. Larry

Re: Illustration of stuff we've been discussing

2009-05-28 Thread Larry Wall
of how it desugars in context, so there's no need for the actual binding to distinguish any extra levels of indirection. All it needs to know is where to poke the pointer to the object. And normally @a contains a list of poke-able pointers, so @a[0] := $x is fair game. Larry

Re: Amazing Perl 6

2009-05-28 Thread Larry Wall
the : of the adverbial there... :) So let's not make the mistake of thinking something longer is always less confusing or more official. Larry

Re: Amazing Perl 6

2009-05-27 Thread Larry Wall
the AST produces by the prefix, except no one implements macros yet. But circumfix openers have to share longest-token space with prefixes. You could maybe use broken bar instead, circumfix:¦ ¦. Larry

Re: Amazing Perl 6

2009-05-27 Thread Larry Wall
likely just use sub infix:· (@a,@b) { ... } $dot_product = @vector1 · @vector2; Or some such. Larry

Re: Meditations on a Loop

2009-05-21 Thread Larry Wall
free to edit the specs. Larry

Re: r26868 - docs/Perl6/Spec

2009-05-18 Thread Larry Wall
on purpose if it's right after the original checkin that introduced the typo, especially if it's my own typo. :) Larry

Re: is value trait

2009-05-18 Thread Larry Wall
the spec either. : : So what should I do about that test? Simply delete it? Yes, unless someone can think of a reason not to. Larry

Re: Unicode in 'NFG' formation ?

2009-05-18 Thread Larry Wall
sort without regard to the underlying representation. In that sense it's not important that synthetic codepoints are negative, of course. Larry

Re: Unicode in 'NFG' formation ?

2009-05-18 Thread Larry Wall
these fundamental Perl 6 design principles, feel free to whack on the specs. Larry

Re: Unicode in 'NFG' formation ?

2009-05-18 Thread Larry Wall
trying to : cover all the bases...) Buf16 should work for raw UTF-16 just fine. That's one of the main reasons we have buffers in sizes other than 8, after all. Larry

Re: each() comprehension

2009-05-18 Thread Larry Wall
of?) The grep itself does the smart matching: @dogs = grep Dog, @mammals; Larry

Re: Unicode in 'NFG' formation ?

2009-05-18 Thread Larry Wall
. Larry

Re: Contextual Variables

2009-05-15 Thread Larry Wall
On Fri, May 15, 2009 at 08:04:49PM -0500, John M. Dlugosz wrote: Larry Wall larry-at-wall.org |Perl 6| wrote: On Fri, May 15, 2009 at 07:16:45PM -0500, John M. Dlugosz wrote: Reading through S02, I see that contextual variables has changed in the last year. It appears that contextual

Re: Call for review: traits, lift

2009-05-05 Thread Larry Wall
, it basically gives any called routine carte blanche on modifying your variables, which is probably a bad thing. So leave it in for now, I guess. Larry

Re: Interpolation of \c[$charname]?

2009-04-28 Thread Larry Wall
function of one's choosing. This doesn't seem like something that will occur frequently enough to need rehuffmanization. Larry

Re: .to_charnames() and .from_charnames()

2009-04-28 Thread Larry Wall
the performance at this point. Larry

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Larry Wall
, if we decide it's sufficiently unambiguous. Larry

Re: S08 Draft questions (Captures and Signatures)

2009-04-01 Thread Larry Wall
not to allow such notation? Because subsignatures within a signature match a single argument with that subsignature, on the assumption that the argument is something resembling a capture. Larry

Re: simultaneous conditions in junctions

2009-04-01 Thread Larry Wall
, a Set in list context is its members, so any(%set) isn't a problem going the other direction. Larry

Re: Logo considerations - 3 logos needed

2009-03-25 Thread Larry Wall
On Wed, Mar 25, 2009 at 08:54:34AM -0400, Guy Hulbert wrote: : On Wed, 2009-25-03 at 22:45 +1100, Timothy S. Nelson wrote: : Additionally, while you recommended Camelia for Rakudo, my : understanding was that Larry was recommending it for Perl 6 rather than : Rakudo. This is correct

  1   2   3   4   5   6   7   8   9   10   >