You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by Wes McKinney <we...@gmail.com> on 2020/01/06 15:34:48 UTC

Re: [C++] "nonexistent" or "non-existent"

I agree using a different terminology than "nonexistent" like
"NotFound" would be good. If we use "nonexistent" then the hyphen-free
spelling seems preferred

On Sun, Dec 29, 2019 at 2:23 PM Micah Kornfield <em...@gmail.com> wrote:
>
> I'm not sure if all of the examples refer to the same thing, but "Not
> Found" (from http 404 error) is the most common way of expressing at least
> the first concept I think.
>
> On Sat, Dec 28, 2019 at 11:45 AM Neal Richardson <
> neal.p.richardson@gmail.com> wrote:
>
> > IMO while "nonexistent" is the right word, neither are particularly
> > readable or obvious in code. Is there a better word/phrase?
> >
> > On Fri, Dec 27, 2019 at 5:34 PM Sutou Kouhei <ko...@clear-code.com> wrote:
> >
> > > Hi,
> > >
> > > I found that we use both "nonexistent" and "non-existent" in
> > > our C++ code base. I think that we should use one of them
> > > instead of mixing them.
> > >
> > > "nonexistent":
> > >
> > >   * Public API:
> > >     * cpp/src/plasma/: plasma::PlasmaErrorCode::PlasmaObjectNonexistent
> > >
> > > "non-existent":
> > >
> > >   * Public API:
> > >     * cpp/src/arrow/filesystem/: arrow::fs::FileType::NonExistent
> > >   * Internal:
> > >     * cpp/src/arrow/util/io_util.h: allow_non_existent
> > >   * Test:
> > >     * cpp/src/gandiva/tests/: non_existent_function
> > >
> > >
> > > Which should we use?
> > > (Personally, I prefer "nonexistent" to "non-existent".)
> > >
> > >
> > > Thanks,
> > > --
> > > kou
> > >
> >

Re: [C++] "nonexistent" or "non-existent"

Posted by Micah Kornfield <em...@gmail.com>.
I also think we have "KeyError" which I think might model the same concept?

On Mon, Jan 6, 2020 at 7:35 AM Wes McKinney <we...@gmail.com> wrote:

> I agree using a different terminology than "nonexistent" like
> "NotFound" would be good. If we use "nonexistent" then the hyphen-free
> spelling seems preferred
>
> On Sun, Dec 29, 2019 at 2:23 PM Micah Kornfield <em...@gmail.com>
> wrote:
> >
> > I'm not sure if all of the examples refer to the same thing, but "Not
> > Found" (from http 404 error) is the most common way of expressing at
> least
> > the first concept I think.
> >
> > On Sat, Dec 28, 2019 at 11:45 AM Neal Richardson <
> > neal.p.richardson@gmail.com> wrote:
> >
> > > IMO while "nonexistent" is the right word, neither are particularly
> > > readable or obvious in code. Is there a better word/phrase?
> > >
> > > On Fri, Dec 27, 2019 at 5:34 PM Sutou Kouhei <ko...@clear-code.com>
> wrote:
> > >
> > > > Hi,
> > > >
> > > > I found that we use both "nonexistent" and "non-existent" in
> > > > our C++ code base. I think that we should use one of them
> > > > instead of mixing them.
> > > >
> > > > "nonexistent":
> > > >
> > > >   * Public API:
> > > >     * cpp/src/plasma/:
> plasma::PlasmaErrorCode::PlasmaObjectNonexistent
> > > >
> > > > "non-existent":
> > > >
> > > >   * Public API:
> > > >     * cpp/src/arrow/filesystem/: arrow::fs::FileType::NonExistent
> > > >   * Internal:
> > > >     * cpp/src/arrow/util/io_util.h: allow_non_existent
> > > >   * Test:
> > > >     * cpp/src/gandiva/tests/: non_existent_function
> > > >
> > > >
> > > > Which should we use?
> > > > (Personally, I prefer "nonexistent" to "non-existent".)
> > > >
> > > >
> > > > Thanks,
> > > > --
> > > > kou
> > > >
> > >
>