DrRacket、R5RS 和错误程序 [英] DrRacket, R5RS and the error procedure

查看:40
本文介绍了DrRacket、R5RS 和错误程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢 DrRacket IDE,但目前我正在构建一个我希望独立于它的宠物项目,这意味着我承诺只使用 R5RS 标准程序.

I love DrRacket IDE, but currently I'm building a pet project where I would like to be independent from it, meaning i'm commited to use only R5RS standard procedures.

问题是,在 DrRacket 中有一个称为错误"的程序,我想继续使用它,但我在标准中找不到它.

The thing is, in DrRacket there's this procedure called "error" which i would like to continue using but I can't find it in the Standards.

我想知道的是,是否有一种方法可以仅使用标准过程来模拟错误"过程,以便代码可以在不同的 Scheme 实现之间移植.

What i would like to know is if there's a way to emulate that "error" procedure using only the Standards procedures so that the code is portable between different implementations of Scheme.

我试过显示",但它似乎不是我想要的,因为在输出时不会发出错误信号.

I've tried "display" but it doesn't seem to be quite what I want for that does not signal an error while outputting.

推荐答案

好吧,根据这个:http://srfi.schemers.org/srfi-23/srfi-23.html,错误程序非常广泛,所以我认为你可以安全地使用它.

Well, according to this: http://srfi.schemers.org/srfi-23/srfi-23.html, the error procedure is pretty widely available, so I think you would be safe using that.

这篇关于DrRacket、R5RS 和错误程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆