Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ feels thread

Name: Anonymous 2012-10-16 12:55

that feel when your CS lecturer starts loops from 1 instead of 0.

Name: Anonymous 2012-10-16 22:23

>>20
It's funny you'd bring up sentinel values and C in particular. C has very good reasons for using 0-based arrays. C has just such a function you describe, but it just returns a pointer into the array like a responsible adult. Your language doesn't have pointers? Some(x) | None | Bust.

Seriously though, this in-band signaling BS is only good as a feat of engineering. You don't want to have to do that in your language.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List