"Cannot" vs "could not"

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема "Cannot" vs "could not"
Дата
Msg-id 20200319155704.GC2571@momjian.us
обсуждение исходный текст
Ответы Re: "Cannot" vs "could not"  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-docs
We use "cannot" and "could not" quite often in source code and error
messages:

    $ grep .. 'cannot' | wc -l
    13180

    $ grep ... 'could not' | wc -l
    12149

I noticed it by looking for errors about parsing in our /bin tools:

    src/pl/plperl/ppport.h:      die "cannot parse version '$ver'\n";
    src/pl/plperl/ppport.h:      die "cannot parse version '$ver'\n";
    src/bin/pg_upgrade/server.c: pg_fatal("could not parse version file \"%s\"\n", cluster->pgdata);

This web page explains the difference well, i.e., "cannot" is present
tens, "could not" is past tense:

    https://www.englishforums.com/English/CannotVsCouldNot/bhprvk/post.htm

Is there any sense that we should have more consistency in our message
wording?

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +



В списке pgsql-docs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Better documentation for row_number() combined with setreturning functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: "Cannot" vs "could not"