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

A student's question

Name: Anonymous 2011-05-30 12:20

My teacher keeps drilling into our collective heads that using the break command is harmful, and that if we wish to terminate a loop early it would be far better to create a boolean variable, set it to 0, and add a condition to the head of the loop, and set the boolean variable to 1 when a break is needed. Note that this way you actually have to check this every single loop (where it is not needed almost every time) as well as waste a command to reset the boolean in case it was set to true.

Is there a reason to this?

Name: Anonymous 2011-05-30 16:21

>>1
Yes. Break is harmful. You should read SICP and use continuations instead of loops with break/continue.

Name: Anonymous 2011-05-30 16:35

>>16
No. SICP is harmful. You should use break and continue instead of Lisp faggotry.

Name: Anonymous 2011-05-30 16:42

>>17
Young man, you have learned a little bit and think you knows it all, but soon you will grow out of your sophomoric sophistication and come to realize that the world is more complicated, and you will begin again to understand that LISP is The Right Thing.

Name: Anonymous 2011-05-30 16:45

>>18
What can LISP offer over C?

Name: Anonymous 2011-05-30 16:48

>>18
no, lisp is for faggots

Name: Anonymous 2011-05-30 16:49

>>19
macros.

Name: Anonymous 2011-05-30 16:50

>>19
functionality

Name: Anonymous 2011-05-30 17:00

>>21
Consider me an ignorant barbarian for a moment (because I largely am when it comes to LISP), and explain to me the virtues and advantages of macros.

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