google / google/codeworld

Rename `text` to `lettering`

Open
#666 8 comments 0 reactions 0 assignees View on GitHub
enhancement time_wait
Dominant language
Haskell
Stars
1.3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

The function `text :: Text -> Picture` is confusing, because its name suggests that it's describing text, but it's actually describing a picture made from text. I propose we use the word `writing` instead. This is a word whose meaning actually suggests the visual appearance of letters.

Other noun options incluse `print`, `lettering`, or `label`; but they have various issues of their own. There are some adjective options, too, like `written`; but all other primitive picture functions are already named with nouns - and `printed` is already used for the conversion from Number to Text, so that would be confusing.

FYI @alphalambda

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.