perhaps? 2011-08-22 19:18 采纳率: 100%
浏览 223

# lang 方案与 # lang 球拍的区别

I'm guessing that #lang racket is a dialect of scheme with much more out of the box structures and common functions and perhaps would be more pedagogic. What are the perks a #lang racket against #lang scheme?

Is it best (or even possible) to use #lang scheme in racket to follow all the content of 'Structure and Interpretation of Computer Programs' or even 'How to Design Programs'. HtDP is #lang racket specific?

Whatever code written in #lang scheme, as long as libraries are not being included, can be used in chicken scheme or any main interpreter?

Thanks in advance.

转载于:https://stackoverflow.com/questions/7152416/differences-between-lang-scheme-and-lang-racket

  • 写回答

1条回答 默认 最新

  • 乱世@小熊 2011-08-22 19:37
    关注
    1. Yes, #lang racket is the racket default dialect, with lots of extensions.

    2. Two places where it is not an extension: if must have an else branch, and pairs are immutable (no set-car! and set-cdr!).

    3. #lang scheme was used for a while before the name change, and now #lang racket is used consistently. But we kept #lang scheme around for compatibility (as well as various scheme/--- libraries that are kept and can sometime be different than racket/--- counterparts). There's no reason to use #lang scheme in new code.

    4. To follow SICP, don't use any of these -- there's a nice language that Neil Van Dyke wrote, see its web page for details.

    5. To follow HtDP, don't use any of these, use the student languages. There are also new #lang-based variants like #lang htdp/bsl but they're not in a complete shape, yet. (And HtDP is not #lang racket specific.)

    6. No, Racket is very different from Chicken Scheme. You might be able to run some code in both, but those would probably be only tiny toy examples.

    评论

报告相同问题?

悬赏问题

  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办