A
A
Artem2021-09-06 17:54:31
IT terminology
Artem, 2021-09-06 17:54:31

How to use "is" in predicates?

isQueueOverWlow or queueIsOverFlow?
isQueueEmpty or queueIsEmpty?

And is there a single standard, as I assume?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vasily Bannikov, 2021-09-06
@Trame2771

There is no single standard, but it is often possible to abandon is altogether, and leave only:
queueOverflow
queueEmpty

D
Denis Zagaevsky, 2021-09-06
@zagayevskiy

is definitely shouldn't be in the middle. If it is needed by meaning, then only at the beginning.

A
Alexander Skusnov, 2021-09-07
@AlexSku

isNone, isEmpty
Although, in Haskell you can use shorter
null

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question