www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24302] New: rename the variable "degrees" in sumtype.d at

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 puremagic.com
          Reporter: kdevel 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

--
Dec 26 2023