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

For you lispers out there

Name: Anonymous 2014-08-30 11:18

When I'm programming in C, I do something like this:

int result;

result = operation(x,y,z);

if (result) return ERR_CODE;

When I look at lisp, there doesn't seem to be any error evaluation or SEH. How do you handle errors in lisp?

Name: Anonymous 2014-09-02 14:56

>>3
Well, yeah, that was sloppy. I'm accustomed to something more like

if (result) return result;

where a variable is actually justified. But that's not a real bit of stupidity. Here's some stupidity, fresh from my brain:

buff == (char *)malloc(...);

Thank God for a polite compiler warning.

>>5,6
Thanks dudes. Now I will go and find out what those are before I continue never using lisp.

>>9
You're arguing over whether lisp or Haskell won? Am I not getting irony again? I tend to do that.

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