google / google/codeworld

In codeworld-base, deprecate exp, replace with e

Open
#490 1 comment 0 reactions 0 assignees View on GitHub
discussion
Dominant language
Haskell
Stars
1.3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

I'm not sure if I want to do this or not... but it occurs to me that "exp" as a function is an artifact of the computer programming world, and that mathematicians are quite happy to just write e^x. So let's do that.

Disadvantage: it steals a one-letter name. However, no one ought to be defining one-letter top-level names anyway, and using `e` as a local variable name would still be possible (and give a warning).

No middle school student is ever likely to use either one, so this isn't a big deal. Just trying to be more faithful to the mathematics world.

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.