开发者

What are the pros and cons of Scheme? Is it machine-independent?

Here are two very straightforward questions:

  1. Is Scheme machin开发者_运维技巧e-independent?
  2. What are the advantages and disadvantages of Scheme?


  1. Scheme is a language, not a program. That's like asking if English is country-independent. If you mean whether or not you can run Scheme code on multiple platforms, the answer is that it depends on what interpreter/compiler you use.

  2. This is a really broad question but I'll give it a shot:

    • Advantages: Simple syntax, easy to learn, functional programming
    • Disadvantages: Can't do low-level operations


  1. In general yes, Scheme programs can be run on different platforms. It is more machine independet than C. There are many cross-platform scheme implementations, namely Racket (formerly plt-scheme), chicken, gambit-c, guile. Bigloo scheme can compile to JVM, which is obviously machine independent

  2. Advantages are (for me) is expressness power and speed of development. Disadvantages are run-time type checking (Racket support compile-time), weak standard r5rs as it does not include modules, utf8, networking and so on and programmer usually have to stay with chosen scheme implementation [forever].

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜