-
-
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
HTDP Signatures - missing Image type in BSL #202
Comments
@sorawee Thanks for the transfer. Daniel Pattern and I will look into what to do about checked signatures once his test-drive at NU is over. An Image signature has been on our radar screen for a few weeks. (And no checked signatures are not types. They get checked at run time.) |
This could probably be a starting point: https://github.com/racket/deinprogramm/blob/master/deinprogramm/deinprogramm/sdp/image.rkt |
Any hope that a new version of DrRacket that includes an Image signature will be released before mid of October (which is when my course using HTDP starts)? |
@klauso No our release cycle matches the North American college calendar. |
I hope you'll also revise struct signatures in such a way that signatures can be added to struct constructors. My preference for teaching would be something like PLAI's |
(FWIW, I consider this a pedagogical mistake. Your students will confront Python on their first internship; developing mental discipline now will help.) |
But according to that principle, adding signatures at all was already a mistake. But if you do add the option for signatures, you may just as well do it properly. Give the teachers some choices to tailor the teaching language to their own teaching method - that would be my preference. |
What version of Racket are you using?
8.10
What program did you run?
Images are an important type in the HTDP methodology. If the new signatures are supposed to be usable for teaching, a pre-defined type for images should be available.
One can work around the issue using the
predicate
facility in signatures, but this does not work in BSL because it usesimage?
as a higher-order funciton.The text was updated successfully, but these errors were encountered: