As suggested on discourse,
it would be lighter to replace $Ref(s) by &s
to declare that s should be treated as a scalar in broadcasting:
@. f($Ref(s), t)
would become
@. f(&s, t)
Outside @. macros, &s would be a shortcut for Ref(s).
The error message should be updated accordingly.
As suggested on discourse,
it would be lighter to replace
$Ref(s)by&sto declare that
sshould be treated as a scalar in broadcasting:@. f($Ref(s), t)would become
@. f(&s, t)Outside
@.macros,&swould be a shortcut forRef(s).The error message should be updated accordingly.