-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
BSL decimal number values paste as non-textual #134
Comments
I think it would make sense to have the ones that are in decimal "mode" and have a finite decimal representation to turn back into text when they are inserted into a buffer. One way to do this is to get some cooperation from the text% they are pasted into (or, in other words, the existing APIs make this a change that has to go into several places with this approach). But it might also work for the |
Do we still think the snip-based decimal printing provides enough value to keep it in general? Is there some aspect of a textbook or course that relies on it? |
Backwards compatibility :-) !! |
Well, if there are things that rely on that printing, then I would want to keep it. |
I played around with this a little bit and it seems like the best approach is to make the definitions window specifically replace number snips that look like ascii with actual ascii, when the snips are inserted. I tried various tricks with the It might also work to try to do something specific to the definitions window when saving but I didn't try that. |
The latest snapshots from northwestern (and maybe the Utah ones too, didn't check) have these changes in them. Also, @dvanhorn maybe be interested in this. |
When BSL is set to display rational numbers as decimal, evaluating them produces a non-textual value that is easily mistaken for being textual. Then if a student copies and pastes such a value into their racket file, the value pastes as non-textual and the file becomes non-textual. This breaks course infrastructure that depends on receiving textual files, and is quite difficult for course staff, let alone students, to understand, and they are far more difficult to find than images or comment boxes since they look exactly like text.
The text was updated successfully, but these errors were encountered: