Skip to content

automatic extraction of type parameters is dangerous #5

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions