Skip to content

Feature request: allow more update operators, e.g. a ⊗= 2 as shorthand for a = a ⊗ 2 #15964

Open
@carlobaldassi

Description

@carlobaldassi

Only a subset of available operators allow the shorthand OPERATOR= notation. I think the current situation is that only ASCII operators are covered.
e.g.

julia> a ×= b
ERROR: syntax: unexpected "="
 in eval(::Module, ::Any) at ./boot.jl:236

I think it would be reasonable if all operators which allow binary infix syntax would also allow the shorthand. (This came up when I defined a custom operator.)

Metadata

Metadata

Labels

parserLanguage parsing and surface syntax

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions