Hacker News new | past | comments | ask | show | jobs | submit login

Macro is okay. Procedure is not okay. Break is a procedure.



> Macro is okay. Procedure is not okay. Break is a procedure.

Why do you believe this to matter? Smalltalk's signaling and exception handling (both `catch` and `finally` equivalent) uses regular messages and blocks (with hooks into the interpreter obviously). What value do you see in making special syntax things which need not be so, ease of "optimizations" (such as compiling a block to a jump)?


Why is it not okay? Any lisper will tell you using a function is always preferable to using a macro, if at all possible.


C is a strict and beautiful. Pascal is "Here you have your ugly break; because you too weak to live without it".


Yes, I have a collection of works of art entitled "buffer exploit", placed next to the "dangling pointer" exhibition hall.

It is sooo beautiful.


Don't you understand the sheer beauty of the undefined behavior? It is not the beauty of a great painting, it's the beauty of the winter mountain: shining, tantalizing, with the stability of a marble on a needle and ready to take your life at the lightest sneeze.


If you think C is strict, then you've never looked at the ANSI C standard.


I've looked at Delphi, thank you.


Pascal has had labeled goto from its conception. Break is just an extension / syntactic convenience. Even in C and C++ i still use goto when I have to break out of multilevel loops.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: