Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Digital Mark λ ☕️ 🕹 🙄
@mdhughes@appdot.net  ·  activity timestamp 3 weeks ago

@screwlisp The origin of Scheme (AIM-349) was Sussman & Steele trying to make an Actors implementation, and it turned out that was just lambda with closures. So a common way to make Scheme objects is:

(define (make-actor data)
(let ((data data))
(lambda (msg . args)
(case msg ...) )))

And you might have the final else report all usage as an error, so the user doesn't have to read the code to figure out how to use it.
#scheme #gofai

AIM-349
AIM-349
AIM-349
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.13 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login