Skip to content

begin for @view #35115

@tpapp

Description

@tpapp

begin was introduced in #33946, but it would be nice if @view had a rewriting like replace_ref_end! for begin, too.

Currently

julia> VERSION
v"1.5.0-DEV.461"

julia> v = 1:4
1:4

julia> v[(begin + 1):(end - 1)]
2:3

julia> @view v[(begin + 1):(end - 1)]
ERROR: UndefVarError: begin not defined
Stacktrace:
 [1] top-level scope at REPL[4]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions