hirosystems / hirosystems/recipes

Do not use `?` at the end of boolean function

Open
#1 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
MDX
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

In clarity functions, the question mark is used to indicate optional or wrapped results, e.g. `to-consensus-buff?`

There should be code guidelines that suggest to not use question mark for boolean results, example [`has-duplicate-chars?`](https://github.com/hirosystems/recipes/blob/f0815d99ac9e812b3966aa1af835cc455039c2f3/recipes/check-for-duplicates.mdx)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.