

notjack
2020-8-18 02:20:13
I think it would be useful to have a way to make it easier for libraries to take advantage of inferred names

notjack
2020-8-18 02:23:41
like some sort of inferred-callsite-name
macro that define
cooperates with: (define (make-foo #:widget widget #:name [name inferred-callsite-name])
... make a foo object ...)
; the #:name argument is automatically inferred to be 'my-foo
(define my-foo (make-foo #:widget my-widget))
define
already creates a macro in order to support keyword and optional arguments right? it could create one that looks at syntax-local-name
and uses it for any optional arguments that default to inferred-callsite-name
.

wanpeebaw
2020-8-18 06:48:57
Is there any reason that structs not default to be transparent?