This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24762 - in my opinion if there is more than 3 parameters you should use a switch statement
Summary: in my opinion if there is more than 3 parameters you should use a switch stat...
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-21 11:00 UTC by contributor
Modified: 2014-02-25 19:41 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2014-02-21 11:00:47 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html
Multipage: http://www.whatwg.org/C#introduction-9
Complete: http://www.whatwg.org/c#introduction-9
Referrer: http://www.html5rocks.com/en/tutorials/dnd/basics/

Comment:
in my opinion if there is more than 3 parameters you should use a switch
statement

Posted from: 86.172.124.152
User agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36
Comment 1 Ian 'Hixie' Hickson 2014-02-21 17:40:46 UTC
This is presumably regarding the "Drop your favorite fruits below" example.
Comment 2 Ian 'Hixie' Hickson 2014-02-25 19:41:21 UTC
I'm leaving the example as-is. A switch is not wrong here, certainly, but neither are if statements, and I don't think it detracts from the example's purpose.