Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Dr.Racket has a `#lang eopl` to support the second/third editions: https://docs.racket-lang.org/eopl/index.html The first edition seems to build a tower of abstractions gradually, than directly jumping into the deep end of the pool. But getting code from first edition to run on Dr.Racket is quite a trouble. Can someone well versed with Racket macros, please write `define-record` to work with `#lang eopl`? I can figure out the macros with some effort, but cant quite figure out how to extend an existing lang.


Just tested and `(require foo)` works fine in `#lang eopl`. That is, if you define `define-macro` and put it in package, say, `eopl1`, then you can use

    #lang eopl
    (require eopl1)


Thank you for that pointer. I have been trying a few approaches but hit a serious wall. I have a write up on what I tried so far. Could you please take a look and give me some pointers/feedback? Thanks in advance! https://gist.github.com/kesava/ec1518495387928d35ec9fc5a764d...




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

Search: