叼花硬汉 2010-07-27 15:46 采纳率: 0%
浏览 999
已采纳

Racket 和 Scheme 有什么不同?

Racket is a descendant of Scheme. How is Racket different than R6RS? What did it add, or take away, or is just different?

I understand that Racket is more than a language, it's a platform for languages. But I'm referring to the main Racket dialect.

转载于:https://stackoverflow.com/questions/3345397/how-is-racket-different-from-scheme

  • 写回答

6条回答 默认 最新

  • 喵-见缝插针 2010-07-29 00:34
    关注

    Racket is ultimately based on R5RS, and not R6RS and not a strict superset of either. I don't think it can be called 'Scheme' because it's not backwards compatible with any Scheme standard.

    Most implementations offer extensions, but are otherwise backwards compatible, of course, the compiler that comes with Racket can also run in R5RS or R6RS mode. Valid R5/6RS Scheme that runs in racket mode may either be rejected, cause runtime errors, or behave differently than it should. With that said, the main points where it is not backwards compatible are:

    • Racket has no set-cdr! and set-car!, rather set-mcar! which only works on pairs specifically created as mutable.
    • What Racket calls letrec is called letrec* in R6RS and doesn't exist in R5RS, what R5RS and R6RS call letrec doesn't exist in Racket.
    • In Racket, a lot of things are self-evaluating which would raise an error in R5RS, most importantly the empty list.
    • Racket is case sensitive, though R6RS is also case sensitive
    • Racket treats ( ... ) and [ ... ] as equivalent, R5RS does not, but R6RS does.

    There are probably more, but on most other parts racket is a superset of Scheme.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?

悬赏问题

  • ¥50 potsgresql15备份问题
  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上