[581] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

switch vs. if

jfc@ATHENA.MIT.EDU (jfc@ATHENA.MIT.EDU)
Thu Jan 17 08:19:26 1991

I notice in a few places in the library code like

	switch(var) {
	case XXX:
		return foo;
	default:
		break;
	}

Is there a reason for doing it this way instead of writing "if (var ==
XXX) return foo;" other than a desire to make the code slower and more
complicated?


home help back first fref pref prev next nref lref last post