Skip to content

Refactor platform detection internals #16

@mfelsche

Description

@mfelsche

With merging of #15 we now have a mixture of ifdef and if (in case of osx) for detecting how to generate application directories.

It might be cleaner to use a primitive like:

primitive Osx
primitive OsxAsUnix
primitive Unix
primitive Windows

type Platform is (Osx | OsxAsUnix | Unix | Windows)

and use a match statement in each function to determine how to create the particular appdirs.

cc @SeanTAllen does that express your ideas?

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