| Article: |
Technologies to Watch: A Look at Four That May Challenge Javas Development Dominance | |
| Subject: | Not maintainable or english | |
| Date: | 2005-10-20 16:40:58 | |
| From: | kgelner | |
|
Response to: Seaside link
|
||
|
I didn't much care for the parallel assignement either, all fun and games until you accidentially delete something from one side and then have to remember the order they were in (or worse yet accidentally put it back wrong).
|
||
Showing messages 1 through 1 of 1.
-
Not maintainable or english
2005-10-20 16:50:38 Bruce A. Tate |
[Reply | View]




To your example, how about: use the red and yellow bowls for ketchup and mustard. The intent is very clear, without the need for temporary variables.
If the assignments are not related, don't use them together. It's a very useful high level abstraction. And yes, it's one that we use in English. I can't believe you're actually arguing for
for (i=0, i<10, i++).
The only reason that makes any sense at all is that you've done it for 30 years in C, C++ and now Java. In Ruby,
for i in 1..10
1..10 is a first class range.
Ruby may not be to your liking, but it's a pretty clean language, and it's much closer to English than Java.