SE-0202 Amendment Proposal: Rename Random to DefaultRandomNumberGenerator

For the benefit of people that weigh-in on this amendment review, but didn’t have time to participate in previous discussions, let’s...

Recap:

Suggestion for DefaultRandomNumberGenerator first appears on SE-0202 proposal review:

No reason given.

Second mention down-thread:

No reason given.

Third mention further down-thread:

This is in a context of discussing the implementation details with regards to thread-safety. @Joe_Groff was replying with possible workaround to specific memory exclusivity concerns raised by @nnnnnnnn.

Fourth time down-thread was after the proposal acceptance decision:

The consesus acceptance claim is quite the misrepresentation, given the context I provided above.

Moving on to the amendment pitch phase:

Reason given for renaming: promotion of other than default implementations. (?) That’s non sequitur.
The author of SE-0202, @Alejandro, clarifies the original vision in his reply:

Followed by the amendment proposal author:

@Alejandro follows up by detailed explanation for the current SE-0202 design based on performance considerations and supports the original naming with thorough term-of-art justification from other languages:

It is noted that even though Swift’s in-the-wild practice is to use empty enums as de-facto namespaces (due to them currently missing from the language), it’s just a convention and technically structs can play this role as well.

:man_shrugging: The definition of Bikeshedding?

There seemed to be mild consensus forming on the topic of splitting the default implementation struct and namespace enum. This is not the subject of this amendment proposal.

1 Like