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

Scheme interpreter in Erlang

Name: Anonymous !gNlkr4vCuc 2009-08-06 20:32

I'm going to make a Scheme interpreter this weekend. I'm wondering how I should represent lists: Same as Erlang lists, or one 2-tuple per cons?

Name: Anonymous 2009-08-08 1:57

>>25
You can do that in CL, which is a multi-paradigm programming language (allows functional programming too). you have macros like WITH-OPEN-FILE and other WITH-* macros, they take care of opening and closing the file for you, or in more general terms, they allocate the resource when you enter the context of that block of code and de-allocate it when you exit it. This is done by using UNWIND-PROTECT under the hood, which is similar to try{}finally{} in Java/Sepples, but such details are hidden/abstracted away for you by the macro.

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