[Issue 19102] New: [Functions] pure functions repetition

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 19 21:13:24 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19102

          Issue ID: 19102
           Summary: [Functions] pure functions repetition
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: john.michael.hall at gmail.com

Under 5 pure functions it says:
---
4) To control mutations, D has the immutable type qualifier. If all of a pure
function's parameters are immutable or copied values without any indirections,
it can guarantee that the pure function has no side effects.

5) To prevent mutation, D offers the immutable type qualifier. If all of a pure
function's parameters are immutable or copied values without any indirections
(e.g. int), the type system guarantees no side effects.
---
which are basically the same, but one says "D has the" and the other says "D
offers the". I would change it myself, but I'm not sure which one it should be.

--


More information about the Digitalmars-d-bugs mailing list