[javascript-dev] Re: Re: distinguishing between inlets
Matt Lyon
matt at postsomnia.com
Thu May 22 14:40:23 MDT 2008
- Previous message: [javascript-dev] Re: distinguishing between inlets
- Next message: [javascript-dev] Re: distinguishing between inlets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
personally i'm fond of case statements, there's less temptation to mix in other logic with an "if" that picks your inlet:
function list() {
switch(inlet) {
case 0:
// do stuff;
break;
case 1:
// do stuff;
break;
}
}
- Previous message: [javascript-dev] Re: distinguishing between inlets
- Next message: [javascript-dev] Re: distinguishing between inlets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
