[swift-evolution] [Proposal draft] Enhanced floating-point protocols

Joe Groff jgroff at apple.com
Fri Apr 15 12:56:00 CDT 2016


> On Apr 15, 2016, at 8:20 AM, Stephen Canon via swift-evolution <swift-evolution at swift.org> wrote:
> 
> “e” is a great bike-shedding example.  While it would definitely allow a fluent style if you know what you’re looking at, I worry a little bit about readability of `Float.e` or `.e` in source.  Most programmers are at least passingly familiar with pi, but that familiarity doesn’t necessarily extend to e.  IDEs and docstrings make this palatable, of course.

It's also questionable to me how often `e` itself is interesting independent of an exp() or log() operation.

-Joe


More information about the swift-evolution mailing list