Skip to content

Some reserved words cannot be ?d #24871

@yurivish

Description

@yurivish

?abstract and ?type in the REPL both throw an error on 0.7, though ?struct and ?return and ?end and many others all print out helpful documentation.

help?> struct
search: struct mutable struct unsafe_trunc

  struct

  The most commonly used kind of type in Julia is a struct, specified as a
  name and a set of fields.

help?> abstract
ERROR: LoadError: Invalid @var syntax `incomplete: premature end of input`.
Stacktrace:
 [1] bindingexpr(::String) at ./docs/bindings.jl:17
 [2] docm(::LineNumberNode, ::Module, ::Expr) at ./docs/Docs.jl:736
 [3] @doc(::LineNumberNode, ::Module, ::Vararg{Any,N} where N) at ./boot.jl:406
in expression starting at docs/utils.jl:206

Update: Just learned from help mode autocomplete that abstract type works. Maybe this just needs an alias somewhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)docsystemThe documentation building system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions