Skip to content

Instantly share code, notes, and snippets.

View ChrisMarshallNY's full-sized avatar
🐲
Developing in Swift, on Long Island, NY

Chris Marshall ChrisMarshallNY

🐲
Developing in Swift, on Long Island, NY
View GitHub Profile
@ChrisMarshallNY
ChrisMarshallNY / ProtocolIssueDemo.playground
Last active April 12, 2020 19:33
This demonstrates an issue with default protocol implementations, in Swift.
// This is the little demo, at the start.
protocol A {
var thisIsRequired: String { get }
var thisIsOptional: String { get }
}
extension A {
var thisIsOptional: String { get { "" } set {} }
}
@ChrisMarshallNY
ChrisMarshallNY / keybase.md
Created June 2, 2019 15:40
KeyBase Proof

Keybase proof

I hereby claim:

  • I am chrismarshallny on github.
  • I am chrismarshallny (https://keybase.io/chrismarshallny) on keybase.
  • I have a public key ASA9qgqTBewdJkOVIqdYblw88MkJ0bQoBEjYQDebihAcMQo

To claim this, I am signing this object: