Skip to content

Syntax issues with hexadecimal prefix #16356

@omus

Description

@omus

I was messing around with how the syntax for the hexadecimal prefix works while thinking about #15731 and I found something entertaining:

julia> 0xenomorph
ERROR: UndefVarError: nomorph not defined

julia> xenomorph = 1
1

julia> 0xenomorph
ERROR: UndefVarError: nomorph not defined

julia> nomorph = 2
2

julia> 0xenomorph
28

julia> 0xgnomorph
ERROR: syntax: malformed expression

julia> 0xefnomorph
478

Maybe we should disallow juxtaposition with hexadecimals? Seems like it will just lead to confusion.

Metadata

Metadata

Assignees

Labels

breakingThis change will break codeparserLanguage parsing and surface syntax

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions