Uh oh!
There was an error while loading. Please reload this page.
Change the rlimit type to string instead of int - #159
Conversation
vbatts
commented
Sep 8, 2015
should we set some const for these? ( |
mrunalp
commented
Sep 8, 2015
@vbatts I think for this case, we could let the runtime map from string to the constants just like for capabilities. That way we don't have to track changes as newer constants are added. |
There was a problem hiding this comment.
Touching this line is probably a good enough excuse to reformat with one line per-sentence.
vbatts
commented
Sep 8, 2015
@wking but that is less clear? |
wking
commented
Sep 8, 2015
On Tue, Sep 08, 2015 at 01:42:00PM -0700, Vincent Batts wrote:
Why is it less clear? The context (linux.rlimits) should be enough to |
vbatts
commented
Sep 8, 2015
Those dropped-prefixes are idioms elected for those projects internal
|
wking
commented
Sep 8, 2015
On Tue, Sep 08, 2015 at 02:20:01PM -0700, Vincent Batts wrote:
That's not just because C doesn't namespace definitions? Since we get |
vbatts
commented
Sep 8, 2015
Context is something to be aware of. Honestly, I'm not sure whether you're On Tue, Sep 8, 2015 at 5:31 PM, W. Trevor King notifications@github.com
|
wking
commented
Sep 8, 2015
On Tue, Sep 08, 2015 at 03:39:11PM -0700, Vincent Batts wrote:
I think it's unlikely that the prefix will change ;). But there's no |
mrunalp
commented
Sep 8, 2015
One could argue both ways but I think it is better to be explicit here. Also, some tooling could benefit by directly using these definitions from their header files. |
wking
commented
Sep 8, 2015
On Tue, Sep 08, 2015 at 04:03:58PM -0700, Mrunal Patel wrote:
This seems fair.
Adding the prefix back in before searching headers seems easy enough, But “the redunancy reduction from removing the namespacing prefix is |
wking
commented
Sep 9, 2015
On Tue, Sep 08, 2015 at 03:39:11PM -0700, Vincent Batts wrote:
And I think everyone who's chimed in is on board with prefixed strings |
philips
commented
Sep 9, 2015
Seems fine, needs a rebase. |
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
mrunalp
commented
Sep 9, 2015
Rebased. |
philips
commented
Sep 9, 2015
lgtm |
vbatts
commented
Sep 9, 2015
LGTM |
Change the rlimit type to string instead of int
Signed-off-by: Mrunal Patel mrunalp@gmail.com