Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Split FilePath constructor to guarantee constructor with AmbientAuth #3820

Closed
Theodus opened this issue Aug 4, 2021 · 0 comments · Fixed by #3819
Closed

RFC: Split FilePath constructor to guarantee constructor with AmbientAuth #3820

Theodus opened this issue Aug 4, 2021 · 0 comments · Fixed by #3819
Assignees

Comments

@Theodus
Copy link
Contributor

Theodus commented Aug 4, 2021

It should be without error to construct a FilePath when AmbientAuth is available as FilePath is a pairing between some path string and capabilities on that path. For capabilities, the current constructor uses a union of (FilePath | AmbientAuth). Insufficient capabilities or access allows the first half of this union, FilePath, to fail, however the latter half, AmbientAuth, can never fail.

https://github.com/ponylang/rfcs/blob/main/text/0070-filepath-constructor.md

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 a pull request may close this issue.

2 participants