SumType in Phobos?
Petar
Petar
Wed Feb 19 11:10:02 UTC 2020
On Wednesday, 19 February 2020 at 09:53:05 UTC, Ernesto
Castellotti wrote:
> On Wednesday, 19 February 2020 at 08:23:57 UTC, Petar Kirov
> [ZombineDev] wrote:
>> In summary, I believe that Phobos needs to grow up and break
>> free from the compiler releases and go become a dub package.
>> Then I see no reason why Phobos should not adopt SumType - it
>> will be just one line of code in its dub.json/dub.sdl ;)
>
> Phobos as a dub package? It would be extremely interesting to
> distribute the STD without depending on the compiler.
> The problem? Dub ;-)
>
> I think it will be extremely difficult to convince people to
> use dub, there are technical problems with dub (but this can be
> solved, so ok) but above all people want all working out of the
> box.
> Having to use dub to compile every file that uses the STD I
> don't think it's a good idea.
>
> Tell me if there are any details that could improve the
> situation
I forgot to add that, AFAIK most complains about Dub center
around:
A) dub-registry availability
B) dub being used as a build system, in addition to being a
package manager.
A) Could be addressed by:
1. Downloading packages from GitHub, GitLab, BitBucket, etc.
instead of storing them on the dub-registry server (or at least
have this as a fallback option)
2. Providing a copy of the list of packages in an alternative
form and on alternative places (e.g. the list could be stored in
git repository, mirrored across various providers)
3. Using other package registry services as backend (e.g. Dub has
Maven support)
B) Is not a showstopper as people can continue using their
favorite build-system, and have dub as build system be improved
at the same time.
More information about the Digitalmars-d
mailing list