Skip to content

Hide inner constructors of objects in this package #318

@jakobnissen

Description

@jakobnissen

Right now you can do:

julia> LongDNA{4}(UInt[1], UInt(1))
1nt DNA Sequence:
A

This is not great, since it exposes the data layout of these objects to the user, and this is an implementation detail. For example, TwoBit.jl uses this.
make an Internal struct and use it for the inner constructor.

However, this is breaking as this is a method of an exported type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions