[Issue 24302] New: rename the variable "degrees" in sumtype.d at least in the kelvin case
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 26 20:19:43 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24302
Issue ID: 24302
Summary: rename the variable "degrees" in sumtype.d at least in
the kelvin case
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: kdevel at vogtner.de
src/phobos/std/sumtype.d
```d
struct Fahrenheit { double degrees; }
struct Celsius { double degrees; }
struct Kelvin { double degrees; }
```
According to WP there is no "degree Kelvin" ("°K") [1]. I would like to suggest
renaming "degrees" to "temperature" or "value". The "°" has been dropped 56
(fifty-six) years ago [2]. Also note that the name of the unit is "kelvin" (all
lower case).
[1] https://en.wikipedia.org/wiki/Kelvin
[2] https://www.bipm.org/en/committees/cg/cgpm/13-1967/resolution-3
--
More information about the Digitalmars-d-bugs
mailing list