Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can actually get rid of the confusing nesting:

    switch(n%4)
    {
    loop:
    case 0: stuff();
    case 3: stuff();
    case 2: stuff();
    case 1: stuff();
    if(--n) goto loop;
    }


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: