Skip to content

Cannot replicate first type stability example #36

@BSchilperoort

Description

@BSchilperoort

https://carpentries-incubator.github.io/efficient-computing-in-julia/100-introduction-performance.html#type-stability

In this case we may observe that the induced type is Union{Nothing, T}.

How may we observe this? I don't see it.

If we run @code_warntype we can see the yellow highlighting of the union type

I don't see the highlighting or that union type...

Image

Using Julia 1.12

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