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

One word, forced indentation of code

Name: Anonymous 2007-06-25 12:21 ID:BtQsWoqp

Can someone explain why /prog/ thinks this is a bad thing? Who the fuck *doesn't* indent their code? And why do we need brackets if the code blocks are already defined by indentation? Makes perfect sense to me.

Name: Anonymous 2007-06-26 12:56 ID:jFgDhU5y

>>26
The reason I said it was a theoretical difference is that you can do what you've suggested--return a tuple of N items--in most languages. It's only when you write formal semantics (which most languages don't even bother with) that treating the passing of arguments and return values identically makes things much simpler. Practically, there's very little difference between (values 1 2) and #(1 2).

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