Skip to content

&<var> syntax to declare a scalar to broadcast with #27563

@ederag

Description

@ederag

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    broadcastApplying a function over a collectionparserLanguage parsing and surface syntax

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions