kellysmith12.21
2020-11-11 15:07:35

Is there a reason that there is a reader parameter for disabling literal box notation, but there isn’t a similar parameter for other literal data, like prefab structs or hash tables?


sorawee
2020-11-11 15:19:41

I guess they are there for Scheme compatibility?


spdegabrielle
2020-11-11 16:05:27

@capfredf when you load drracket it displays the logo of plugins on the splash screen


spdegabrielle
2020-11-11 16:05:43

(when you create a plugin you can specify a logo)


cris2000.espinoza677
2020-11-11 18:11:04

hi, I made a macro called define-w/e-diacritics  basically removes diacritics from the identifier, and the binds the values to the clean identifier (define-w/e-diacritics id val) -> (define #,(normalize (->string (syntax-e #'id))) val) Here is the https://gist.github.com/kurinoku/a29d17021207b0ae01cbbd92218cc5eb\|Gist with the name cleaning function and the code. I need this for some other macro I made, but the problem is in this part.

I made another macro to check that when I give (define versión #f) that versión to define-w/e-diacritics will become version using local-apply-transformer according to it, it does work… But when I try to evaluate that binding it does not work.


capfredf
2020-11-11 20:15:08

I guess you need to generate the normalized id with the original context. for instance, on line 37 of your gist code, use (datum->syntax stx s)