Re:First draft of R7RS (Scheme) small language available
by cypherpunks on Saturday April 16, 2011 @06:28PM
(#2455022)
What's wrong with R5RS?
[ Parent
| on HN ]
Re:First draft of R7RS (Scheme) small language available
by kbob on Saturday April 16, 2011 @06:46PM
(#2455054)
Nothing's wrong with it; it just doesn't go far enough.
It doesn't define a standard module system or macros (beyond syntax-rules), exceptions, or record types. Most R5RS implementations offer those, but they're all different and incompatible. The standard also doesn't help with boring but necessary stuff like file encodings, character sets, etc.
So instead of writing a (nontrivial) program for R5RS Scheme, you have to write it for MIT Scheme or Racket or Chicken or Chibi or ...
Re:First draft of R7RS (Scheme) small language available
by cypherpunks on Saturday April 16, 2011 @07:49PM
(#2455178)
What's right, though, is you can implement an interpreter in a weekend. That makes it usable in a lot of places. Once you add exceptions, that goes away. File encodings and character sets are nice, but short-sited. R5RS was eternal. No one predicted the move to Unicode 35 years ago when Scheme was created, and that lack of definition let it make the transition fine.
I'm all for recommendations on things like those, so if you chose to implement them, there's a standard way, but I'm not in favor of making those part of the standard.
Re:First draft of R7RS (Scheme) small language available
by chc on Saturday April 16, 2011 @08:35PM
(#2455257)
Implementing an interpreter for a language in a weekend is a less common need than writing a program for the language. If you want to write an interpreter that does no more than R5RS in a weekend, R5RS is perfect for you. But surely you can see the need for a standard beyond that.
Re:First draft of R7RS (Scheme) small language available
by anon_d on Sunday April 17, 2011 @05:10AM
(#2455828)
Once you add exceptions, that goes away.
Not really. Exceptions are easy to build on top of continuations, which are already part of R5RS.
Re:First draft of R7RS (Scheme) small language available
by pdelgallego on Saturday April 16, 2011 @06:38PM
(#2455043)
The lack of a proper module system was the major drawback for me. I also miss the immutable lists by default that racket provides.