‘Fake error’ about immutable values when using popFirst() on Array
It’s been a while since I wrote any meaningful Swift. How I didn’t miss the Swift compiler’s bullshit error messages. var someArray = [“Foo”, “Bar”] if let foo = someArray.popFirst() { print(“Who cares, we never get here anyway.”) } That yields, on the popFirst() method: “Cannot use mutating member on immutable value: ‘someArray’ is … Read more