Closed
Bug 172954
Opened 23 years ago
Closed 23 years ago
Improvement to "replace switch with loop" example
Categories
(www.mozilla.org :: General, defect)
www.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: zwol, Assigned: alecf)
References
()
Details
Attachments
(1 file)
|
3.26 KB,
patch
|
Details | Diff | Splinter Review |
You describe a technique for replacing a switch over a set of tag values with a
loop over a lookup table (linear search). But in this case the search isn't
necessary -- if the table is properly ordered, a single indexed lookup is all
that's necessary.
Suggest making the changes in the patch which I will attach to this bug.
| Reporter | ||
Comment 1•23 years ago
|
||
| Assignee | ||
Comment 2•23 years ago
|
||
a nice suggestion, but a bug is not necessary, and just clutters my workload.
I'll update the document later this week.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 3•23 years ago
|
||
Apologies. Filing a bug was what doctor.cgi recommended one do if one did not
have a CVS account.
Updated•17 years ago
|
Product: mozilla.org → Websites
Updated•13 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•