a form of negative and all.
I found this in E06:
if %person{title} ne $known_title { ... }
Well... I guess E06 is unmaintained, but currently has the best
explanation of junctions I can find, so I offer the attached patch in
the hope that the logic error does not propagate.
--Eric
--
But you
the just an array paradigm which breaks the weld?
@a = 1..*;
@a[-1] = 9; # @a = (9) now ?
That's just my thoughts from what I understand and sorry if introducing
welding into the analogy causes bits of molten metal to go flying
around ;-)
--Eric
--
You can't win. You can't break even. You
function (or a standard function which a user
reimplemented -- you never know).
- Ashley Winters
--
--
__
Eric Hodges
not realy make
since for given/when and its smart matching magic. But then maybe we
just don't want to be able to say when $a == $b and thats just
invalid since it would be clearer written as an if.
--
--
__
Eric Hodges
;
into
temp undefine $x;
Larry
In order not do do some strange magic could you jsut do:
temp($x)++;
That seems clear and non magical to me.
Just my 2 cents! ;)
--
--
__
Eric Hodges
I think 'subset' might be a nicer colour for this bikeshed. For an
extra three characters you lose the confusion with to set, and it
highlights the fact that you're (usually) declaring a *constrained*
subset of the original type.
Stuart
Ehh. By that definition arn't all sets subsets?
make any mention of it. If it has been settled
could we get some doc updates?
--
--
__
Eric Hodges
usage of type1^type2 ?
Even if we use ^ as a sigil why would it get confused on that? I
don't think type1 ^type2 could have any realy meaning so it should be
easy for the parser to know the difference.
--
--
__
Eric Hodges
What about something like:
c\
Then you get
sub sametype (c\T $x, c\T $y) {...}
Not exactly pretty though. c\T
Actualy i think ^ might be my favorite so far.
sub sametype (^T $x, ^T $y) {...}
--
Eric
I have a suggestion/proposal/whatever.
I am just starting to get a grasp of uses for pairs and where they are
handy. Working on string.trans some showed that it would be useful to have
the function accept a list of pairs. That was working until the fix for
magical pairs went through and now the
the magical ness of pairs before.
--
--
__
Eric Hodges
of it and it doesn't add any data that wasn't there before. I
don't think it should ever lean towards (b) but them I bet someone else will
have an equaly good use of that. ;) So in the end I think some way of
chooseing would be good, with one option picked as standard.
--
Eric Hodges
/gajigu_juerd_n.html
--
__
Eric Hodges
for that. That would give us the ability to give the
variable a different name than the parameter. I like.
sub seek (:x($horizontal),:y($vertical))
On the other hand, it's now unclear whether you can call that as
seek(1,2).
Needs to be allowed somehow.
Larry
--
__
Eric Hodges
internal classes
because every added class could possibly compromise existing code.
Well that is my 2 cents and my first post here so please forgive anything
that apears rude or stupid and guide me on how to improve future posts.
Thanks,
__
Eric Hodges
changed the
rule so that $_ is always aliased to the topic regardless of whether
it's aliased to an explicit variable name.
Larry
This seems to argue against OUTER::
--
Eric J. Roode
perhaps a div2(n,m): given two ints, returns two ints, n/m and n%m.
--
Eric J. Roode[EMAIL PROTECTED]
Senior Software Engineer, Myxa Corporation
? Are you
seriously suggesting that the Array class should be designed such
that it cannot be inherited?
--
Eric J. Roode[EMAIL PROTECTED]
Senior Software Engineer, Myxa Corporation
to code in perl 5. At the risk of sounding reactionary,
this doesn't seem like a Big Win for perl.
--
Eric J. Roode[EMAIL PROTECTED]
Senior Software Engineer, Myxa Corporation
++;
return () if $i = $max_num; # No more elements to return
return map $_-[$i], @arr_list; # Return ith elements
}
}
--
Eric J. Roode[EMAIL
David L. Nicol wrote:
Are there really situations where
$$reference = An Expression;
is clearer than
$reference = \(An Expression);
?
Eric is confused. I don't know about in Perl 6-to-be, but in Perl 5
those two mean totally different things:
$foo = \$bar; # sets
.
;-)
--
Eric J. Roode[EMAIL PROTECTED]
Senior Software Engineer, Myxa Corporation
a whole mess of
quotes and backslashes, can be construed as ugly. :-)
And, while I'm on my soapbox here, I don't get how ... is a vast
improvement over qw :-)
--
Eric J. Roode[EMAIL
In a fit of insanity, at 10:14 EDT Tue May 8, I wrote:
9 times out of 100, qw saves a large number of keystrokes. (The
other 1% of the time, ...
I hope it's obvious that I meant 99 times out of 100
sheepish look
--
Eric
.
--
Eric J. Roode[EMAIL PROTECTED]
Senior Software Engineer, Myxa Corporation
.
--
Eric J. Roode[EMAIL PROTECTED]
Senior Software Engineer, Myxa Corporation
?
--
Eric J. Roode[EMAIL PROTECTED]
Senior Software Engineer, Myxa Corporation
$a, $b, $c);
print "$a, $b, $c\n";
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation
ing, right?
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';
ng, as
an undef value does now?
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';
Generate a warning, or not?
Or:
foo();
print $x;
Generate a warning, or not? Which one? Remember, foo() may initialize $x.
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Seni
Glenn Linderman wrote:
Eric Roode wrote:
1. You don't say in your RFC, but I'm guessing, that a null value
evaluates to false in a boolean context. Correct?
I would expect it to be considered false. Logical expressions involving
NULL are defined to be "undefined", actua
FC. If not, should I make a separate RFC?
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';
CHUNK3
The here-doc terminators all line up with the perl code.
The generated program is nicely indented relative to the left margin.
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior
But as long as we're proposing allowing whitespace before/after the
doc tag, comments are a Good Thing, imho.
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ',
prefer four columns.
No problem -- I make my tab settings four columns. Which, for purposes
of here docs and this proposal, works just as well.
The REAL sinners are those who mix spaces and tabs. THAT's evil. :-)
--
Eric J. Roode
{
func2();
}
sub func2
{
last func1;
}
? Imho, it is a BAD THING for functions to know who called them,
and to vary their behavior accordingly.
--
Eric J. Roode, [EMAIL PROTEC
a change the quoting character!").
------
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';
over or hang yourself.
I set my tab stops to four columns; at least one of my coworkers
sets his tab stops to eight columns. We edit the same code with no
problems.
--
Eric J. Roode, [EMAIL PROTECTED] print scalar
n chucking the whole idea
out the window.
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r',
n
makes up in unambiguity what it loses in convenience.
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa C
would HAVE to be a very optional feature. I rely on undef
converting to a null string in many, many programs.
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'to
@l = grep {$_9} @L; # same as:
@l = grep {pass if $_9}; #-- (10)
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';
be
extremely useful to a fairly small set of users (math folks), and
are going to be somewhat useful to another small set of people,
and fairly useless to the majority of Perl programmers. That screams
"module" to me, not "new core features".
--
Ariel Scolnicov wrote:
Eric Roode [EMAIL PROTECTED] writes:
[...]
The underlying problem is that arrays don't make SENSE as an
implementation for sets. What is the value of:
But all of the following DO make sense as implementations for sets,
depending on your application:
* Sorted lists
Does execution
time mean nothing to you?
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';
to remove $/ from the end of a string
at any other time, they can s,$/$,,
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa
Richard Proctor wrote:
[Eric Roode wrote]
Perhaps $/ and $\ should become per-filehandle variables, and
there should be some way to set autochomp-on-read per filehandle,
and auto-newline-on-output per filehandle.
I can see a small benefit for autochomp-on-read but none whatsoever
for auto
?
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';
tors.
Also, as TomC recommended, do check out the existing modules
on CPAN.
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre
rint LOG "$_ found\n";
}
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';
in college :-)
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';
two cents.
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';
here docs are an extremely useful part of the Perl language,
and often times, quoted strings just don't cut it.
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'r
/^[^_]/, keys %hash }
would be what? Brevity?
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation
.
--
Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
Senior Software Engineer'tona ', 'reh', 'ekca', 'lre',
Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';
At our company, we pronounce "www" as "dub-dub-dub". The first
syllable of the letter "w", three times.
Very easy to say quickly. "dub-dub-dub-dot-perl-dot-com". Try it.
--
Eric J. R
57 matches
Mail list logo