Skip to content

DataType is already a thing #4

Closed

Description

@oxinabox

typeof(Int) == DataType
As does basically all other types of types, with the exclusion of unions and unionalls.

While we can have multiple things using same name because of shadowing,
I would find a confusing to say this name used for anything other than the original definition

Activity

  1. ericphanson commented on Jun 25, 2024

    @ericphanson

    just to say I was confused by this recently. I think RecordType would be a better name, like a record in a database, since it has fields which carry data.

  2. quinnj-bot commented on Nov 18, 2026

    @quinnj-bot

    [comment generated via AI]
    Agreed that the name is confusing next to Base.DataType. Renaming it would break every package that subtypes or dispatches on StructTypes.DataType, and StructTypes is deprecated, so the name stays. StructUtils.jl, the successor, uses trait functions (structlike, dictlike, arraylike) and has no such type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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