On May 4, 2005, at 23:19 , Larry Wall wrote:
You must have missed the implied ... at the end of my list of
other WTDI.
You can also do any of:
say Two if /hello/;
/hello/ say Two;
/hello/ and say Two;
/hello/ ?? say Two :: leave;
infix:and(/hello/, { say Two })
continue
On May 5, 2005, at 11:28 , John Williams wrote:
How does [+] know you mean
reduce infix:+, @array;
instead of
reduce prefix:+, @array;
which is nonsense, but the [+] is in a prefix position.
Because [] applies only to infix operators, as I understand it.
With the hyper metaoperator, the real
On May 3, 2005, at 00:04 , Luke Palmer wrote:
I agree with you there. $Larry has said that he wants `when` to work
Shouldn't that be @Larry[0]?
Cheers,
David
smime.p7s
Description: S/MIME cryptographic signature
. But
the first person to write [a...] gets what's comin' to 'em.
Regards,
David
--
David Wheeler
President, Kineticode, Inc.
http://www.kineticode.com/
Kineticode. Setting knowledge in motion.[sm]
On Feb 18, 2005, at 2:04 AM, Brent 'Dax' Royal-Gordon wrote:
Junctions are equivalent to the English sentence Get eggs, bacon, and
toast from the store. (In Perl, that'd be something like C
$store-get(eggs bacon toast) .) It's just a bit of
orthogonality that allows you to give eggs, bacon,
On Feb 15, 2005, at 11:16 PM, Larry Wall wrote:
I admit that calling the .brainf*ck method is problematic several
ways...
And what of .c#?
Regards,
David
On Feb 15, 2005, at 11:06 AM, Larry Wall wrote:
So maybe the actual pragma name is
use qubits;
Note: the pragma is not use junctions, since they're already allowed
to use junctions, as long as they don't try to observe them. :-)
To quote Noah, what's a qubit?
On Dec 6, 2004, at 6:27 PM, Matt Fowles wrote:
getters and setters
John Siracusa wanted to know if Perl 6 would allow one to expose a
member variable to the outside world, but then later intercept
assignments to it without actually having to switch to using
getters and
setters
On Dec 6, 2004, at 7:38 AM, Austin Hastings wrote:
for = {...}
I dub the...the fish operator!
:-)
David
On Dec 4, 2004, at 10:57 AM, Larry Wall wrote:
Well, I just put is shape because that's what the PDLers settled on,
but as far as I'm concerned linguistically, it could just be is dim.
That would settle the make-it-like-English question by making it
not at all like English.
On the aesthetic hand,
On Nov 30, 2004, at 2:23 PM, Larry Wall wrote:
Correct. The p5-to-p6 translator will turn any
while (handle) {...}
into
for @$handle {...}
I assume that each value would be still fetched from the file handle
lazily, yes?
Regards,
David
On Nov 30, 2004, at 2:46 PM, Larry Wall wrote:
: I assume that each value would be still fetched from the file handle
: lazily, yes?
Um, that was the question my Correct was answering.
D'oh! Sorry.
David
On Sep 17, 2004, at 12:06 PM, Larry Wall wrote:
I originally made them lowercase because they were $=line variables
and I didn't want them to conflict with POD names that are typically
uppercase, and use of an C= secondary sigil for POD is a no-brainer.
s/uppercase/lowercase/ ?
David
On Sep 17, 2004, at 12:21 PM, Larry Wall wrote:
No, not the verbs, the uppercase nouns we see like
=begin COMMENT
...
=end COMMENT
Oh, I wasn't sure, because in the Synopses you've been using propercase
for =head1 POD. But maybe it's not the subjects of the header and item
type verbs
On Sep 9, 2004, at 9:14 AM, Larry Wall wrote:
I just borrowed the - from Perl 5 because I knew it was available,
and I thought it read better for Cfor loops than the Ruby approach.
Interestingly, I was at PDX.pm last night for a presentation entitled,
Ruby for Perl Programmers. One of the things
On Aug 19, 2004, at 9:41 AM, Matt Diephouse wrote:
If the parameter does not exist at all, then param() will return
undef in a scalar context, and the empty list in a list context.
Sure enough. And I've even read a large percentage of the (unwieldy)
CGI.pm docs. But I was using Cparam as
On Aug 19, 2004, at 11:07 AM, Aaron Sherman wrote:
First off, in Perl 6, I *think* that that C = will enforce a
scalar context (it's a tuple operator, last I recall).
W00t!
Second, in Perl 5 it should not be hard to identify such situations for
warning purposes. C = may be a synonym for C,, but
On Aug 14, 2004, at 5:52 PM, Larry Wall wrote:
If one goes with a standard method name, we also want to see what it
looks like as an indirect object:
for more $*IN
for iter $*IN
for every $*IN
for read $*IN
for in $*IN
for shift $*IN
Of these, I like Cevery best.
Like I
On Apr 16, 2004, at 7:19 AM, Simon Cozens wrote:
I'll bet you the actual most *common* use of modulus is:
until ( my ($percent_done=done()) == 100 ) {
do_work();
print $percent_done,\n unless $percent_done % 10;
}
And I'll bet it's something like this:
for my $i
On Apr 16, 2004, at 10:14 AM, Juerd wrote:
Even with the xx Inf? Why?
Oh, right, missed that. Sorry.
David
On Mar 22, 2004, at 10:36 PM, David Wheeler wrote:
I'll wait and see what I hear back from the Emacs developers. In the
meantime, there's TextEdit.
I've heard back that it may be that Unicode support simply isn't
included in the Carbonized version of Mac OS X. They plan to look
On Mar 20, 2004, at 1:32 PM, Calle Dybedahl wrote:
You don't need Unicode display « and », just plain old ISO 8859-1.
True, but I'd like to get Unicode working for other projects, as well.
They're characters number 171 and 187 there. And AFAIK every Emacs
version released in the past ten years
On Mar 22, 2004, at 5:02 PM, Piers Cawley wrote:
Try this:
(cond
((eq window-system 'mac)
(when (string= default-directory /)
(setq default-directory ~/))
(setq mac-command-key-is-meta t
mac-reverse-ctrl-meta nil
process-connection-type nil
mac-keyboard-text-encoding
On Mar 22, 2004, at 10:28 PM, Piers Cawley wrote:
(require 'cl)
somewhere before that code chunk. I thought everyone already did that.
Thanks. I put only the code you sent me in my .emacs, and a handy
Unicode file I have still doesn't display properly. *sigh*
I'll wait and see what I hear back
On Feb 2, 2004, at 9:53 PM, Kurt Starsinic wrote:
I realize this is a tad OT, but can anyone tell me how I can get Emacs
to properly display Unicode characters? I expect that others on the
list could benefit, too.
(require 'un-define)
Since I really don't understand Lisp, and since that
On Feb 3, 2004, at 7:13 AM, Kurt Starsinic wrote:
No joke. You'll need to have the mule-ucs module installed.
A quick Google search turns up plenty of sources.
Oh, I have Emacs 21.3.50. Mule is gone.
You'll also need to have the appropriate fonts installed, of
course.
You may need to
On Feb 2, 2004, at 5:20 PM, Larry Wall wrote:
That being said, we can potentially use × U+00D7 MULTIPLICATION SIGN.
(Though my vim can't seem to decide whether it's a single-width or a
double-width character, urgh...)
I realize this is a tad OT, but can anyone tell me how I can get Emacs
to
currently _never_ execute, no matter when
they're declared.
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://www.kineticode.com/ Yahoo!: dew7e
! ;-)
Regards,
David (Who wants to start writing Perl 6 applications yesterday.)
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://www.kineticode.com/ Yahoo!: dew7e
some_sort_of_test($t) returns a true value.
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://www.kineticode.com/ Yahoo!: dew7e
On Tuesday, November 18, 2003, at 06:44 PM, Joseph Ryan wrote:
And also if @array_of_random_values contains 'ok'.
D'oh! See Damian's solution, then. ;-)
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http
markers are
only available within actual parameter lists.
Damian
Welcome back, Damian. Lo, how we've missed you and Larry these many
long months!
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http
*without* having to inherit from an
abstract base class and I wish that interface equivalence were checked
before inheritance, as per Luke's idea.
Sounds like you want Java-style interfaces to me.
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED
On Thursday, July 24, 2003, at 09:25 AM, Kurt Starsinic wrote:
Sounds like you want Java-style interfaces to me.
Follow the thread back. Objective-C had them way first, and their
ur-name is protocols.
D'oh! Sorry, I had read that, but then forgot.
David
--
David Wheeler
/,$x] »-« [»ord«split/null/,$y]
}
and then:
#! /usr/bin/perl6
use Symbol::Readability;
print delta_r('~','|');
How else?
Hrm. What was the output?
=)
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
On Thursday, January 9, 2003, at 03:05 AM, Damian Conway wrote:
I don't know about *your* font, but in mine the ~ and ~ versions are
at least twice as readable as the | and | ones.
Just out of curiosity, how did you measure that? ;-)
David
--
David Wheeler
On Tuesday, December 24, 2002, at 02:55 AM, Piers Cawley wrote:
Apparently part of the problem is that the undef function isn't
fully defined.
Well, isn't that sort-of the point?
:-)
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED
with? part from? part of? partner? etc.).
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL
On Sunday, December 8, 2002, at 10:20 AM, Smylers wrote:
I dislike Csift cos it's a small typo away from Cshift.
Yes, but I would expect to be a compile-time error, since the
signatures are different. The same can't be said for r?index.
David
--
David Wheeler
guess.
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]
to ask!
Best,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]
definedness check is yet to be decided.
That's a scalar context? I assumed it was list context from your
previous post:
In a list context:
$fh # Calls $fh.each
At any rate, I hope that it's bound to $_ -- nice conversion from Perl
5's behavior, that.
David
--
David Wheeler
On Monday, November 18, 2002, at 08:17 PM, Damian Conway wrote:
Sure. Cwhile always evaluates its condition in a scalar context.
Oh, duh. Thanks.
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http
On Monday, November 18, 2002, at 08:19 PM, Damian Conway wrote:
(B
(B What was the final syntax for vector ops?
(B @a $B"c(B+$B"d(B @b
(B @a $B"d(B+$B"c(B @b
(B
(B The latter (this week, at least ;-).
(B
(BThis reminds me: I though of another set of bracing characters that
,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]
) can be undef.
HTH,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]
On Wednesday, October 30, 2002, at 07:18 AM, Jonathan Scott Duff wrote:
The only thing this inspires in my brain is Schoolhouse Rock
flashbacks.
o/~ Conjuction Junction, what's your function? o/~
Heh. That's what I heard, too.
David
--
David Wheeler AIM
is written in, I
think that you and I might be better off using a smarter mailer.
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
be a PITA...even though I *love* the idea of using these
characters, might it be better to abandon them for now?
Regards,
David
PS: What do they look like in this reply?
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
?'s
And I didn't see them in Austin's message, but I see them in yours.
Your mailer did the right thing, it looks like.
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net
are:
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Which is correct.
But let me ask you -- how did you input those characters?
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED
down after this message.
So I would look favorably on finding a replacement for superposition.
Well, I like set operators, too, but what's the grammatical term for
the above logically entangled list of nouns?
Regards,
David
--
David Wheeler AIM: dwTheory
whitespace to be the concatenation operator!
my $foo = $bar $bat;
;-)
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]
explaining #4 to someone
Yes, except that bit is a subroutine reference, IIRC, not an operator.
That's why it makes more sense to put the punctuation character at the
end of the operator name.
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED
On Wednesday, October 16, 2002, at 04:55 PM, Smylers wrote:
How about keeping caret for xor?
$a ~^ $b # bitwise xor
$a ^^ $b # logical xor
Hm, the seagull operator?
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED
?
And will Perl 6 do it at compile-time or at run-time?
Thanks,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
On Monday, September 2, 2002, at 03:44 AM, Damian Conway wrote:
my Date $date .= new('Jun 25, 20002');
H. That's a very interesting idea.
I like it.
Hallelujah! I like it, too! It's only one character more than my
original suggestion!
Regards,
David
--
David Wheeler
On Monday, September 2, 2002, at 10:00 AM, Damian Conway wrote:
No, I never said (nor intended to imply) that. Note that I carefully
avoided the
word alias in my description of this technique. ;-)
That was my doing. Sorry folks.
David
--
David Wheeler
. As long as one is careful about not creating
conflicting class names...
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
typing so that I
don't have to do all that extra typing.
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
) is this:
my $date = Date.new('June 25, 2002');
Would automatically type C$date as a Date object.
Thoughts?
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net
suppressed my stream of
consciousness.
I think we're all the better for it! :-)
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
this:
my %hash;
for qw(one two three) {
%hash{$_} = 1; # $_ should *not* == %hash here!
}
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo
the matches from the last match?
e.g., ($1, $2, $3, ...)?
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
would appreciate a mini-exegsis for what
Perl 6 can do for them :) [hint, hint]
I rather expect that whatever Perl 6 does for golfers is a side-effect of
what Perl 6 is doing for programmers who just need to get their work done.
David
--
David Wheeler
On 6/7/02 11:21 AM, David Wheeler [EMAIL PROTECTED] claimed:
Not to mention kinda useless. I was hoping for a magic array that would hold
the actual *matches*, rather than pointers to their character positions.
And it appears to be C@$0. Duh. Sorry for the noise, folks.
David
--
David
dedicated to Perl 5, and it will likely to
continue moving forward for some time -- it may never die. And I think
that's true regardless of whether Perl 6 supports Perl 5 or not. So it's
okay by me to dump it. Lots of people will freak out, but many won't.
Regards,
David
--
David Wheeler
enough. But the tests have got to be there.
Regard,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
will be more likely to have documented changes.
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber
to pay for the test bed for every possible
combination of perl version, OS, various libraries, etc., etc.? I think that
*requiring* that all tests pass is unrealistic.
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED
Data::Types module on the CPAN. It
offers functions for checking integers and other numeric types.
'Course, in Perl 6, builtin types will make this a non-issue. I look forward
to that day!
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED
of inlining methods were considered by
p5p about two years ago, when Doub MacEachern submitted a patch that
optimized Perl 5 method calls. Simon wrote about it here:
http://www.perl.com/lpt/a/2000/06/dougpatch.html
Regards,
David
--
David Wheeler AIM: dwTheory
backslash when a single backslash prints a single backslash
-- even when it precedes a single quote!
But there are Perl 5 nits, really.
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http
that the language designers would decide that
the way I use the terms is ever-so-much-better? ;-)
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo
went with our chosen terminology for Perl 6. ;-)
Damn. I was afraid you were going to say that! :-)
Thanks for the reply.
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net
On 5/11/02 2:43 PM, Damian Conway [EMAIL PROTECTED] claimed:
method set_baz($newbaz is compatible($.baz)) { $.baz = $newbaz }
method set_baz($newbaz is typeof($.baz)) { $.baz = $newbaz }
I like the latter best -- and it beats the hell out of instanceof ;-)
Regards,
David
--
David Wheeler
.)
I'm not a p5p, so I was wondering how this was going. I expect it won't go
into 5.8.0, eh?
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo
On 5/1/02 12:11 PM, Brent Dax [EMAIL PROTECTED] claimed:
It's far too late to make it into 5.8, but it looks like it'll be in
5.10 when that comes out (in a year or two).
I figured. Too bad. ;-) A year or two is long time to wait!
Regards,
David
--
David Wheeler
at all is appealing about Celsloop.
Why, for Perl poetry that wants to talk about the boat in Spanish! :-P
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo
changed at a particular time -- runtime. Compile
time properties just *are* (is), no matter what, unless and until you say,
at runtime, that it is *now* something else.
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
{...}
That generalizes nicely on the very rare occasions that you need to use
both:
for @x, @y ; @z
- $a ; $b, $c {...}
/blockquote
And then we just have to be aware that this could be the source of subtle
bugs, and use the formatting to help us spot it.
Regards,
David
--
David
Anyone know what the chances are that some enterprising C hacker
can/will/did get the // and //= operator into Perl 5.8? Seems like it
wouldn't be a huge deal to add, and I'd love to have it sooner rather than
later.
Regards,
David
--
David Wheeler AIM
On 4/17/02 1:20 PM, Aaron Sherman [EMAIL PROTECTED] claimed:
This gets ugly when you mix in traditional C for (are we keeping that in
Perl6?):
Yes, but it's name is changing to Cloop.
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED
things are more rigorous now, and it should be 5.8.1. Personally,
I'd rather see it sooner than later.
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo
of existing code. Good point, I hadn't thought of that.
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
-somefunctionthatchangesthehashvalue();
$a{aa}; # Key found.
I personally liked the stringification of keys. It made things a LOT
simpler. :)
I suspect that you'll still be able to do this.
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ
the database, and are therefore the same
object, even though they wouldn't have the same OID. So I'd want to be able
to say, for hash keys, use a key I define (probably including a primary key
ID from the database).
Regards,
David
--
David Wheeler AIM: dwTheory
.
But the default is gonna look a lot like Perl 5.
That's certainly good enough for me!
Regards,
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
the mnemonic again?
Is there any way the syntax could be made different? Could the two
approaches be differently named? Perhaps the first could be Cforeach, and
the second could be Cfor, and they could both use commas. Or am I just
being paranoid?
Regards,
David
--
David Wheeler
On Thu, 2002-01-24 at 08:48, Garrett Goebel asked:
So which Apoc will be the OO one?
Apoc 12, to go by the chapters of the 3rd Camel.
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
{} operator, instead. No need for a closing newline.
David
--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
Yahoo!: dew7e
an acceptable name for the
operator.
I think the time has come, at last, to suggest a new operator -- and
perhaps this would be a good place for it. We need the 'doh' operator.
And to borrow from another thread, we might even be able to say
doh!
;-)
David
--
David Wheeler
93 matches
Mail list logo