Skip to main content

All Questions

1 vote
1 answer
288 views

How does Scheme abstract data?

In statically typed language, people are able to use algebraic data type to abstract data and also generate constructors, or use class, trait and mixin to deal with data abstraction. In dynamically ...
DoubleX's user avatar
  • 371
2 votes
2 answers
1k views

Create environment with variables in Scheme

I was looking to create something similar to an object or an environment kind of like in OOP This is what I was thinking: (define env (variable 'x 10 env)) Where I define an env and create a ...
xnv23's user avatar
  • 43
3 votes
2 answers
125 views

extremely confused about how this "oop under-the-hood" example of a counter works

here's the make-counter procedure and calls to it (define make-counter (let ((glob 0)) (lambda () (let ((loc 0)) (lambda () (set! loc (+ ...
qaz's user avatar
  • 109
5 votes
4 answers
13k views

Difference between OOP and Functional Programming (scheme) [closed]

I'm watching a video course/lectures from Stanford. The course is "The Structure and Interpretation of Computer Programs" In the first OOP lecture, the instructor (Brian Harvey) describes an OOP ...
wajed's user avatar
  • 523
10 votes
4 answers
4k views

scheme for object-oriented programmers

I'm thoroughly intrigued by Scheme, and have started with some toy programming examples, and am reading through Paul Graham's On Lisp. One thing I haven't been able to find is a book or website ...
SuperElectric's user avatar
4 votes
1 answer
132 views

Does Scheme work with Microsoft COM?

I'm new to Scheme and I like it a lot for its first-class/higher-order functions. However, my data comes from a COM source with an object-oriented API. I know Scheme and COM belong to different ...
Martin08's user avatar
  • 21.5k