Closed Bug 172954 Opened 23 years ago Closed 23 years ago

Improvement to "replace switch with loop" example

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: zwol, Assigned: alecf)

References

()

Details

Attachments

(1 file)

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.
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
Apologies. Filing a bug was what doctor.cgi recommended one do if one did not have a CVS account.
Product: mozilla.org → Websites
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.

Attachment

General

Created:
Updated:
Size: