Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI functions argument type checks #9

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments
Closed

UI functions argument type checks #9

GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

To improve the error feedback for users, the (or only some?) UI library
functions should check the types of expected arguments before performing any
other action. The reason for such checks is, that errors are detected as early
as possible, such that common Scheme editors can raise a proper exception at
the place where an erroneous function call actually happened. Another reason
are possible issues with side effects taking place in functions before the type
error of an argument is detected. It would be good, if erroneous function calls
because of wrong argument types never change the state of the RACR system.
Note, that it should be possible to statically activate or deactivate argument
type checks (using for example macros). If deactivated, there should be no
runtime overhead because of argument type checks (including any overhead for
checking if argument type checks have to be performed or not!).

Original issue reported on code.google.com by Christoff.Buerger on 28 Jun 2012 at 9:05

@GoogleCodeExporter
Copy link
Contributor Author

Note: Adding UI functions argument type checks would also attenuate the
inconsistent state problem when RACR exceptions are thrown (see issue #8).

Original comment by Christoff.Buerger on 18 Jun 2013 at 12:06

@GoogleCodeExporter
Copy link
Contributor Author

The issue is refined and covered by issue #31.

Original comment by Christoff.Buerger on 13 Mar 2015 at 1:45

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants