Skip to content

automatic extraction of type parameters is dangerous #5

@stevengj

Description

@stevengj

The current default definition seems dangerous to me — it could silently give the nonsensical results.

(For SVector{N,T} it already gives a somewhat confusing error.)

It seems safer to default to throwing a MethodError, or maybe typeof(real(one(T)))

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