Re: Warning error
- Posted by Bob Elia <bobelia200 at netzero.net> Feb 27, 2007
- 504 views
Pete Lomax wrote: <snip> > Regards, > Pete > PS I vote for {}=xxx(), btw, very Eu-like, as I read it as "nothing becomes > equal to the result of xxx()" or I suppose if you prefer, "store the result > of xxx() in nothing/nowhere". Whereas I never really liked the ~xxx() idea. > Plus it ties up nicely with my plans for multiple assignment, and also I > always > found "{}=" dead easy to type, actually easier/faster than "~" even thought > it is three keys(I regularly use) not one(I rarely use). Hi Pete, Multiple assignment would be terrific but please don't use braces for this. I much prefer parentheses; e.g.
{a, b, c) = somefunc() -- Using braces makes it look like sequence formation, which it is not: {d,e,f} = another_func()
Also, (I may be nit-picking here) when you say "nothing becomes equal to..." as in "{}=xxx()", the empty braces have a very specific meaning, that is, "the empty sequence", not "nothing". At least, I find it jarring to look at. Unless, of course, I've misunderstood your intention. ;) BTW, I take it you are familiar with Daryl Border's implementation of multiple assignment called "seqparse" from 2005. Thanks, Bob