# \[Second Review\] SE-0410: Atomics

**URL:** <https://forums.swift.org/t/second-review-se-0410-atomics/68810>\
**Category:** Proposal Reviews\
**Created:** [December 4, 2023, 8:44pm UTC](https://forums.swift.org/t/second-review-se-0410-atomics/68810 "2023-12-04T20:44:23Z")\
**Posts on this page:** 1\
**Showing post:** 131

<div class="post-metadata">

**Author:** ![taylorswift](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/taylorswift/32/43413_2.png) [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Post date:** [January 2, 2024, 9:46pm UTC](https://forums.swift.org/t/second-review-se-0410-atomics/68810/131 "2024-01-02T21:46:55Z")

</div>

> [@Alejandro](#):
>
> I'll go ahead and echo a lot of what other reviewers have already mentioned and say I think `AtomicRepresentable` is an ok name for this protocol if folks really think `AtomicValue` is not the "best" name for this thing.

here’s a thought experiment you might consider when choosing between `AtomicRepresentable` and `AtomicValue`:

[_should_](https://forums.swift.org/t/why-isn-t-double-usable-with-swift-atomics/63082/5) `Double` _conform to this protocol?_

in the current `swift-atomics` package, `Double` does not conform to `AtomicValue`, a decision with a number of justifications that all boil down to “floating point operations don’t mix with atomics”.

i personally found that decision unhelpful - most of the time i don’t care about incrementing atomic `Double`s or checking them for floating point equality - all i am interested in is publishing some `Double` value to some concurrent observer, and the library forces me to encode and decode them through their raw bit patterns. but if you’ve named the protocol `AtomicValue`, you can _kinda_ see why someone might want to keep `Double` away from that protocol.

but if you’ve got `AtomicRepresentable` instead, the name sort of evokes `RawRepresentable` and maybe it makes a lot more sense for `Double` to have an “raw atomic value” of say, `UInt64`.

---

_[View the full topic](https://forums.swift.org/t/second-review-se-0410-atomics/68810)._
