Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

[WIP] refactor into const globals #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

SimonDanisch
Copy link
Member

remove lots of closures and untyped globals, which may or may not be faster and more readable.
It at least composes a bit better, to directly call into the underlying libraries for downloads + compression.
Last remaining thing that needs to be done is to incorporate the ENV overwrite. I couldn't figure out on first sight how they're supposed to work :D

# Initialize our global_prefix
global_prefix = Prefix(joinpath(dirname(pathof(@__MODULE__)), "..", "global_prefix"))

path = joinpath(@__DIR__, "..", "global_prefix")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #156 for my alternative fix. (Though I actually prefer your version personally.)

@musm
Copy link
Contributor

musm commented Sep 30, 2019

This refactor IMO is a lot more readable than all the globals in the current code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants