File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ inspiration for several decisions in this library.
50
50
- do not use ` OS\ErrnoException ` if the error condition would not be indicated
51
51
by the ` errno ` variable in C. Consider adding another similar class, e.g.
52
52
add ` OS\HErrnoException ` if you want to report an error exposed via ` h_errno `
53
+ - use ` keyset<Flag> ` to represent a C bit set, where ` Flag ` is a Hack ` enum ` .
53
54
- add and use Hack classes (not type aliases) for long-lived 'handle'-like
54
55
parameters and return values, e.g. ` OS\open() ` returns a
55
56
` HH\Lib\FileDescriptor ` instead of an ` int ` ; as well as aiding type safety,
@@ -64,6 +65,8 @@ inspiration for several decisions in this library.
64
65
destroy a short-lived opaque C pointer, they should be exposed as a ` shape `
65
66
or ` vec ` . See [ Appendix: opaque C pointer
66
67
encoding] ( #appendix-opaque-c-pointer-encoding ) section for more detail.
68
+ - Functions that are not available in all the Hack supported operating systems
69
+ should put into separate namespaces, e.g. ` HH\Lib\OS\Bsd ` or ` HH\Lib\OS\Linux ` .
67
70
68
71
## Implementation notes
69
72
You can’t perform that action at this time.
0 commit comments