vladd
vladd
@timcassell `newValueAsInt = initialValue;` should be perhaps `newValueAsInt = initialValueAsInt;`? And maybe `if (initialValue == comparand)` instead of `if (initialValue != comparand)`.
@timcassell > No, that would change the behavior to compare exchange if not equal instead of compare exchange if equal. Indeed, you are right. Sorry for the false alarm!
I believe, F# is using `_`: ``` > open System.Collections.Generic;; > let s = [ 1; 2; 3 ] :> IEnumerable;; val s : IEnumerable = [1; 2; 3] >...
> If the intention is to "close" a class within in the boundaries of a compilation unit, such as a project, to be able to do things like exhaustive `switch`...
@orthoxerox F# has a feature [Partial Active Patterns](https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/active-patterns#partial-active-patterns) which looks somewhat like your idea.
Why limit it to only language indicators? It could be anything, e. g. locale or color or any other editor hint.
Split into files has traditionally (except file-scoped namespaces) been neglectable in C#. Wouldn't it be better to make the types not file-private, but partial class part private? Other usecases seem...
Can a _namespace_ be file private? C++ uses anonymous namespaces for this purpose: ``` namespace { // the code here is effectively file private } ```
@HaloFour Well, this seems to be not a problem in C++, it looks like the anonymous namespace has a unique unspeakable name from the linker‘s point of view.
@HaloFour Well, I basically asked if the C++ approach is a way to go: no explicit file private modifier but using an anonymous namespace for it. This way we would...