Re: negated operators and disjunctions (was: Recommended Perl 6 best practices?)

2008-09-14 Thread Eric Wilhelm
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

Re: Iterator semantics

2008-09-12 Thread Eric Wilhelm
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

Re: underscores in the core lib

2006-08-10 Thread Eric
function (or a standard function which a user reimplemented -- you never know). - Ashley Winters -- -- __ Eric Hodges

Re: ~~ with *

2006-06-19 Thread Eric
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

Re: 'temp $x;' with no assignment

2006-04-06 Thread Eric
; 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

Re: proposal: rename 'subtype' declarator to 'set'

2005-11-11 Thread Eric
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?

Re: given too little

2005-11-10 Thread Eric
make any mention of it. If it has been settled could we get some doc updates? -- -- __ Eric Hodges

Re: new sigil

2005-10-25 Thread Eric
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

Re: new sigil

2005-10-20 Thread Eric
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

Re: Translitteration and combining strings and array references

2005-10-18 Thread 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

Re: Translitteration and combining strings and array references

2005-10-18 Thread Eric
the magical ness of pairs before. -- -- __ Eric Hodges

Re: zip: stop when and where?

2005-10-04 Thread Eric
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

Re: Stringification, numification, and booleanification of pairs

2005-09-21 Thread Eric
/gajigu_juerd_n.html -- __ Eric Hodges

Re: Demagicalizing pairs

2005-08-22 Thread Eric
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

Perl defined Object, Array, Hash classes

2005-06-13 Thread Eric
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

Re: Topicalizers: Why does when's EXPR pay attention to topicaliz er r egardless of associated variable?

2002-03-27 Thread Eric Roode
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

Re: Math functions? (Particularly transcendental ones)

2001-09-10 Thread Eric 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

RE: Expunge implicit @_ passing

2001-08-29 Thread Eric Roode
? 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

Re: array/hash manipulation [was :what's with 'with'?]

2001-07-20 Thread Eric Roode
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

RE: array/hash manipulation

2001-07-20 Thread Eric Roode
++; return () if $i = $max_num; # No more elements to return return map $_-[$i], @arr_list; # Return ith elements } } -- Eric J. Roode[EMAIL

Re: aliasing a value in a while each loop

2001-07-20 Thread Eric Roode
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

Re: what I meant about hungarian notation

2001-05-09 Thread Eric Roode
. ;-) -- Eric J. Roode[EMAIL PROTECTED] Senior Software Engineer, Myxa Corporation

Re: Apoc2 - STDIN concerns

2001-05-08 Thread Eric Roode
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

Re: Apoc2 - STDIN concerns

2001-05-08 Thread Eric Roode
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

Re: Flexible parsing (was Tying Overloading)

2001-04-27 Thread Eric Roode
. -- Eric J. Roode[EMAIL PROTECTED] Senior Software Engineer, Myxa Corporation

Re: Strings vs Numbers (Re: Tying Overloading)

2001-04-25 Thread Eric Roode
. -- Eric J. Roode[EMAIL PROTECTED] Senior Software Engineer, Myxa Corporation

Re: Flexible parsing (was Tying Overloading)

2001-04-25 Thread Eric Roode
? -- Eric J. Roode[EMAIL PROTECTED] Senior Software Engineer, Myxa Corporation

Re: RFC 12 (v3) variable usage warnings

2000-09-21 Thread Eric Roode
$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

Re: RFC 12 (v2) variable usage warnings

2000-09-21 Thread Eric Roode
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';

Re: RFC 263 (v1) Add null() keyword and fundamental data type

2000-09-20 Thread Eric Roode
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';

Re: RFC 12 (v2) variable usage warnings

2000-09-20 Thread Eric Roode
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

Re: RFC 263 (v1) Add null() keyword and fundamental data type

2000-09-20 Thread Eric Roode
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

Re: RFC 258 (v1) Distinguish packed binary data from printable strings

2000-09-19 Thread Eric Roode
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';

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-15 Thread Eric Roode
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

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Eric Roode
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 ',

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Eric Roode
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

RE: (RFC 199) Alternative Early-Exit Mechanisms for Blocks?

2000-09-14 Thread Eric 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

Re: Drop here docs altogether? (was Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs))

2000-09-14 Thread Eric Roode
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';

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Eric Roode
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

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Eric Roode
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',

Re: Don't require braces

2000-09-13 Thread Eric Roode
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

Re: Conversion of undef() to string user overridable for easy debugging

2000-09-13 Thread Eric Roode
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

Re: $a in @b

2000-09-11 Thread Eric Roode
@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';

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-11 Thread Eric Roode
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". --

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-11 Thread Eric Roode
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

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-11 Thread Eric Roode
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';

Re: RFC 195 (v1) Retire chop().

2000-09-08 Thread Eric Roode
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

Re: RFC 195 (v1) Retire chop().

2000-09-08 Thread Eric Roode
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

Re: RFC 145 (alternate approach)

2000-09-05 Thread Eric Roode
? -- Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort Senior Software Engineer'tona ', 'reh', 'ekca', 'lre', Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-01 Thread Eric Roode
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

Re: Proposal: chop() dropped

2000-08-31 Thread Eric Roode
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';

Re: Tainted precision

2000-08-29 Thread Eric Roode
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';

Re: RFC 111 (v2) Here Docs Terminators (Was Whitespace and Here Docs)

2000-08-28 Thread Eric Roode
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';

Re: HERE construct

2000-08-28 Thread Eric Roode
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

Re: Nice to have it

2000-08-28 Thread Eric Roode
/^[^_]/, keys %hash } would be what? Brevity? -- Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort Senior Software Engineer'tona ', 'reh', 'ekca', 'lre', Myxa Corporation

Re: RFC 145 (v2) Brace-matching for Perl Regular Expressions

2000-08-25 Thread Eric Roode
. -- Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort Senior Software Engineer'tona ', 'reh', 'ekca', 'lre', Myxa Corporation'.r', 'h ', 'uj', 'p ', 'ts';

Re: OT: pronouncing www

2000-08-24 Thread Eric Roode
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