You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think they are intentionally decoupled (see: #936)
Split PackageSpec constructor into an internal constructor and a user-facing constructor (inspired by #872). It really is two different use cases: one is "create this object and set these fields", the other needs to do hand holding and error checking.
I understand the motivation but it becomes kinda confusing when you develop.
Yeah I understand the use case for having two separate methods, but it's confusing that they have the same name.
E.g. it might be better if the internal constructor was named Pkg.Types.PackageSpec, and then the exported user-facing constructor was named Pkg.package_spec or something like that.
For some reason we have the struct
PackageSpec
inPkg.Types
but then what we export is a method with the same namethat acts differently from the constructor to the
PackageSpec
struct.This leads to very confusing things like:
The text was updated successfully, but these errors were encountered: