# api: deprecate \`isBlank\` and \`isGraph\`\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/d178df773a6a11eff0b7f06f41fe26930c228b91)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: d178df773a6a11eff0b7f06f41fe26930c228b91

Requested commit: d178df773a6a11eff0b7f06f41fe26930c228b91

Commit: d178df773a6a11eff0b7f06f41fe26930c228b91

Tree: a7d70b95ea1577e2fb397872276455d0f94402a2

Author: r00ster91

Committer: r00ster91

## Message

```
api: deprecate `isBlank` and `isGraph`.

I think `isBlank` and `isWhitespace` are quite confusable.
What `isBlank` does is so simple that you can just do the `c == ' ' or c == '\t'`
check yourself but in a lot of cases you don't even want that.
`std.ascii` can't really know what you think "blank" means.
That's why I think it's better to remove it.
And again, it seems ambiguous considering that we have `isWhitespace`.

Next, it also deprecates `isGraph`.
It's the same as `isPrint(c) and c != ' '`, which I find confusing.
When something is printable, you can say it also has a *graph*ical representation.
Removing `isGraph` solves this possible confusion.

```

## Parents

- [93ca0c4a5e040baacfdda495439c4a21467e0e51](https://git.cafe/gitcafe/zig/commit/93ca0c4a5e040baacfdda495439c4a21467e0e51?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/d178df773a6a11eff0b7f06f41fe26930c228b91?format=markdown)
