On Wed, Jun 06, 2001 at 02:20:25PM -0500, David L. Nicol wrote:
Since this thread made it into this week's Official Perl6 Summary,
here goes a defense of Cit as a shorthand for the thing that last
had Cdefined or Cexists queried of it.
Ya know, I hate myself to admit it but I'm liking this
David L. Nicol wrote:
I really don't know enough about perl 5 internals to go on; I
am certain that this feature is a no-brainer though
Besides the fact which, how it might be added to perl5
does not say much about how it might be implemented in
perl6. And it is perl6 we're talking about,
John Porter wrote:
Huh? What did I say?::
you said there would be no performance hit in rewriting
defined|exists to store the pointer to the thing that was
found to be defined or exist somewhere.
After looking at the source code for what might have been the
wrong part of
John Porter wrote:
David L. Nicol wrote:
I really don't know enough about perl 5 internals to go on; I
am certain that this feature is a no-brainer though
Besides the fact which, how it might be added to perl5
does not say much about how it might be implemented in
perl6. And it is
Since this thread made it into this week's Official Perl6 Summary,
here goes a defense of Cit as a shorthand for the thing that last
had Cdefined or Cexists queried of it.
It (by which I mean Cit, isn't this fun) would be a side-effect of
non-autovivifying queries. It allows redundant descents
On Wed, Jun 06, 2001 at 02:20:25PM -0500, David L. Nicol wrote:
this is a confusing hack that might not save any cycles.
Please don't try defending it or $^d in terms of efficiency;
any variable that Perl has to keep track of magically takes a
performance hit. Remember $`, $', and $?
--
You
Simon Cozens wrote:
Please don't try defending it or $^d in terms of efficiency;
any variable that Perl has to keep track of magically takes a
performance hit. Remember $`, $', and $?
No, this datum is already known by defined() and exists() all I
am suggesting is a name for the Perl API