Skip to content

toward capper library: minimal ocap discipline#8

Open
dckc wants to merge 6 commits into
marcsAtSkyhunter:masterfrom
dckc:no-ambient
Open

toward capper library: minimal ocap discipline#8
dckc wants to merge 6 commits into
marcsAtSkyhunter:masterfrom
dckc:no-ambient

Conversation

@dckc

@dckc dckc commented Feb 26, 2016

Copy link
Copy Markdown

Use explicit rather than ambient authority for access to files, net random and eliminate global mutable state.

This lays the groundwork for refactoring as a library for #3 .

dckc added 6 commits February 25, 2016 23:09
Move them closer to other functions that need
similar authority.
  - import powerful objects only
    if (require.main == module), i.e. only when this module
    is invoked from the command line
  - pass access to files, network, randomness explicitly
    rather than using ambient authority
    - to makeConfig(), sslOptions(), makeSturdy(), makeApp()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant