Hi, Can anyone tell me why this works in Racket, (require net/smtp)
(smtp-send-message "smtp.example.com" "test@example.com" "test@example.com" "hello" '("hello world") #:auth-passwd "secretpassword" #:auth-user "test@example.com")
whereas this fails in Arc, ($ (require net/smtp))
($ (smtp-send-message "smtp.example.com" "test@example.com" "test@example.com" "hello" '("hello world") #:auth-passwd "secretpassword" #:auth-user "test@example.com"))
with this error, smtp-send-message: arity mismatch
expected: a different number plus optional arguments with keywords #:auth-passwd, #:auth-user, #:port-no, #:tcp-connect, and #:tls-encode
given: 9
arguments...
[...]
Or why `keyword-apply` is bound in Racket but `$.keyword-apply` isn't in Arc?It should be possible to use Racket keyword args from Arc; at least according to this, https://github.com/hubski/hubski/wiki/Converting-Arc-functions-to-Racket |