开发者

Scheme - standard way in R5RS to execute an external command?

开发者 https://www.devze.com 2023-02-13 00:13 出处:网络
Is there a way in Scheme Revision 5 to call out to an external program? For example: (system \"ls\") 开发者_如何学运维

Is there a way in Scheme Revision 5 to call out to an external program? For example:

(system "ls")
开发者_如何学运维

If not, is there any "official" way to do this, such as specified in a SRFI or a later revision of the Scheme spec (R6RS, etc)?


No.

(It's generally a bad idea to try to write code with "Standard Scheme", and system is one of those things that is unlikely to become standard enough to be usable outside of a particular implementation or via some compatibility library.)

0

精彩评论

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