On Thu, May 04, 2006 at 01:56:44PM +0300, Markus Laire wrote:
On 5/1/06, Paul Johnson [EMAIL PROTECTED] wrote:
But then again, as I said, I really don't see the problem that is being
solved.
This long-dot can be used for many things, not just method calls.
Thanks for taking the time
certianly happens to me fairly often.
Well, I'd obviously quite like that ;-)
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
code as much as the next programmer, and probably a
lot more, but I just don't see the need for this syntax which seems
ugly, confusing and unnecessary.
But then again, as I said, I really don't see the problem that is being
solved.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
to declare which hash keys or array elements are valid.
Do we have that already?
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
, programmers shouldn't need to worry about what
optimisations are going on under the covers.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
.
http://www.mail-archive.com/perl6-language@perl.org/msg11967.html
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
they are, but maybe that's not such a great
problem.
See http://www.eskimo.com/~scs/C-faq/faq.html, especially sections 3.8
and 11.33 for details.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
/ above, but after many discussions on
this topic, I'm still not sure if I can.
http://www.nntp.perl.org/group/perl.perl6.language/9576
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
)
and look for a C list or newsgroup for any subsequent problems you might
have.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
this will be addressed (if it hasn't been already):
perl5 -le 'print gah! if exists $a{b}{c}; print phooey! if exists $a{b}'
perlfunc says:
This surprising autovivification in what does not at first--or even
second--glance appear to be an lvalue context may be fixed in a future
release.
--
Paul Johnson
for the gory details.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
be sensible for Perl 6 to
define such an order.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
together. If it's Wednesday it must be Zurich. We
enjoyed you being here even if you can't remember it ;-)
Oh well, it was only two letters. There wasn't anything about
approximate matching in A5, was there?
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
]ich joke, I think.
Well, that might be attributing it a status it didn't deserve, but yes.
perl -MString::Approx=amatch -wle \
'print Close enough if amatch(Munich, [2], Zurich)'
It's alright. It works just fine as a module. I think Parrot even has
an appropriate opcode.
--
Paul
think the question of what to do with int arrays is somewhat separate.
Might I suggest that storing undef in an int array is not appropriate,
and thus having a (user defined) default value in an int array is also
not appropriate. If you want power, you have to pay for it.
--
Paul Johnson - [EMAIL
$value = @a[$x] //= $x ** 2;
or skip the = depending on how you are trading memory / speed.
Yes, I know that just about everything is unnecessary to someone. To me,
default values as a whole seem a little unnecessary, in fact.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
, Paul Johnson wrote:
Michael Lazzaro said:
2a) When a cell is explicitly re-undefined, does the default value take
effect?
my @a is Array( default = 'foo' ) = (1,2,3);
@a[1] = undef;
@a[1]; # undef, or 'foo'?
STRAWMAN ANSWER: 'foo'.
Seems
causes @a[2] to stop
returning the default.
It doesn't have to be that way:
$ perl -le 'sub e { print exists $a[shift] ? 1 : 0 } e 2; $a[4]++; e 2; e 4; delete
$a[4]; e 2; e 4'
0
0
1
0
0
No, I don't know which side I'm arguing anymore :-)
Actually, I do. I don't like exists on arrays.
--
Paul
judge suggestions on their own merit.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
was in fact supporting the much broader benefits of Parrot
development and funding me probably benefitted Perl 5 even more than Perl
6).
Well, I'll be pretty interested to discover what cause is deemed more
deserving than Larry, Perl 6 or Parrot. The P still stands for Perl,
right?
--
Paul Johnson
On Sat, Jan 18, 2003 at 02:11:37AM +, Simon Cozens wrote:
[EMAIL PROTECTED] (Paul Johnson) writes:
That may well be true, but it seems to me that if people's jobs depend
on those projects then there is (or could be or should be) a source of
funding available, should such be required
was at the top of
the character, where I was more used to seeing it and it didn't look like
an arrow any more, nor did it look very good to me.
This is the way it looks on my browser ~
When I get home I'll mail a message showing how it looks in my xterm ;-)
--
Paul Johnson - [EMAIL PROTECTED]
http
management strategy?
That is, what is the mechanism for manipulating the run-time system
behavior of subs?
sub days_in_month is cached(other_cache_function) ?
Or what?
How about the same way as one would do it now? Presumably we won't all
forget how to program when Perl 6 comes out.
--
Paul
On Mon, Dec 09, 2002 at 02:20:01PM -0800, Austin Hastings wrote:
--- Paul Johnson [EMAIL PROTECTED] wrote:
On Mon, Dec 09, 2002 at 01:58:11PM -0800, Austin Hastings wrote:
Ahh. This is better. How does one implement a more sophisticated
cache management strategy?
That is, what
lag which takes this approach.
Lisp is Japanese?
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
qw/a b c/;
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
to teach people what pure means, which would be much harder than
teaching them what cached means.
A pure function may be run zero, one or more times every time you call
it. And every time you don't. ;-)
[ I notice that Piers has just said about the same as me in one sentence. ]
--
Paul
:-)
Quite.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
optimisations which can be made with pure functions.
It's a way of nailing down the contract on the function rather than
specifying implementation details.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
Austin Hastings said:
sub callmysub
{
mysub(Testing .. 1, 2, 3!; key = 1024, align = Module::RIGHT);
}
Which, upon reflection, apparently introduces an implicit hashparsing
context for autoquoting hashkeys.
Those are pairs, aren't they?
--
Paul Johnson - [EMAIL PROTECTED]
http
hope it isn't ;-)
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
to be a
problem for the applications that want the data, although I'd be glad to
be shown that I am wrong and that the language can support that in a
clean and concise way. Instead, I just want somewhere to hang arbitrary
data.
Thoughts?
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
On Mon, Oct 28, 2002 at 11:55:24AM -0800, Larry Wall wrote:
Well, I don't believe in none since it's really easy to say !any()
Does that have any implications for unless?
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
On Sat, Oct 26, 2002 at 11:24:23AM +0100, Nicholas Clark wrote:
On Sat, Oct 26, 2002 at 01:59:46AM +0200, Paul Johnson wrote:
On Fri, Oct 25, 2002 at 06:28:28PM -0400, Miko O'Sullivan wrote:
From: Larry Wall [EMAIL PROTECTED]
: ? - force to bool context
: ! - force
check after calling system(), so what's the point?
How many people can even remember the English for $_? Or how to spell
The string following whatever was matched by the last successful
pattern match?
Anyway, you can draw your own conclusions from the experiment.
--
Paul Johnson - [EMAIL PROTECTED
; print !!$x'
perl -e '$x = 10.000; print -(-$x)'
perl -e 'print . localtime'
OK, Perl 5 doesn't have all these contexts, and these may be not the
most compelling of examples, but you get the idea.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
-porters/2001-11/msg00124.html
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
as interchangeable might imply runtime
overhead.
Bah! I bet the internals list will laugh at you :-)
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
On Thu, Oct 03, 2002 at 02:29:57PM -0700, Michael Lazzaro wrote:
(As a lame aside, are we going to have a concept of private vs.
protected vs. public, or just private/public?
No protected. Even Stroustrup admits it was a mistake in DE.
--
Paul Johnson - [EMAIL PROTECTED]
http
the inner loop C$_ will be an alias
of C$fruit and there wouldn't be any way of getting the current line.
Well, there's always $OUTER::_ and $OUTER::OUTER::_ etc if you _really_
need them.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
it at YAPC::NA too.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
baz? And just how alike are they?
There must be a better way to describe this.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
been an elsunless and I would have used it. Now I'm
glad there isn't an elsunless and I never had the chance to use it :-)
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
.
Languages like C++ don't support this and you end up writing lots of
accessor functions. Do that in Perl 5 and you pay the price of calling
a subroutine.
It sounds as though Perl 6 is heading towards supporting this. Have we
actually got there?
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
that the feature come with a way to seal the current
context from manipulation, even possibly a way to block accesses.
Doesn't sound very Perlish to me.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
./punctuation
/sentence
/comment
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
with these sorts of
things.
Anyway, what do you think this is? Some kind of democracy?
:)
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
the beaten track or people won't be sure which message they should post
next and then the thread will die.
[ :-) for those who like such things ]
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
this for "do" at least.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
known to the average
programmer, the programmer is presented with an oportunity to learn, and
may even be exposed to a completely new programming paradigm.
And, by the way, it is already possible to do reasonable functional
programming in Perl, and it looks as though Perl6 will provide even more
support.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
On Mon, Mar 26, 2001 at 10:02:40AM -0600, David M. Lloyd wrote:
$obj-method; # Clearly void context.
Unless it's not. For example as the last statement in a subroutine.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
which version of Foo:: you mean.
Has anyone considered the problems associated with XS code, or whatever
its replacement is?
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
52 matches
Mail list logo