Skip to content

Should Scalar(1) .+ 1 return 2 or Scalar(2)? #775

Open
@MasonProtter

Description

@MasonProtter

If was brought up here: JuliaLang/julia#35591 that one nice property of Ref is that

julia> Ref(1) .+ 1
2

whereas

julia> Scalar(1) .+ 1
Scalar{Int64}((2,))

I'm not sure how I feel about this difference yet, but I figured I should open an issue to discuss it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    broadcastdesignspeculative design related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions