Comments (2)
I believe the reasoning is that custom types solve a set of problems, from the developer's perspective.
Yet you can say that that is what the argument name is for, but this will be matched by the compiler.
Also I encourage you to read @robpike blog post on the errors package used in this project.
The Path and User fields denote the path and user affected by the operation. Note that these are both strings, but have distinct types in Upspin to clarify their usage and to allow the type system to catch certain classes of programming errors.
From https://commandcenter.blogspot.com/2017/12/error-handling-in-upspin.html
from upspin.
@bundgaard is correct, it's for the errors package and it works great.
from upspin.
Related Issues (20)
- setupwriters assumes upspin/deploy/ directory structure that setup wizard doesn't create
- Account creation on ACMEv1 is disabled HOT 14
- Group Access to dir server HOT 5
- Out of memory while deleting files
- go get instructions need updating HOT 2
- Incorrect quarantine extension on files opened in mount HOT 1
- double compressed download archive HOT 6
- https://key.upspin.io/ down? HOT 5
- If `prevErr.isZero()` is `true`, it will skip writing current error string. HOT 2
- certificate expired
- upspin-ui shows 404 error HOT 3
- non-trivial typo in overview doc (I think?) HOT 4
- keygen needs investigation HOT 3
- client/file: *File.ReadAt doesn't return io.EOF when file is read to the end HOT 1
- client/file: *File.Read incorrect offset when short read HOT 5
- client/file: TestFileSeek is slow HOT 1
- Handling distributed storage HOT 1
- docs on upspin.io out of date; fixed at head; docs need to be pushed HOT 1
- dircache.watcher never times out on non-existing hosts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from upspin.