ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

I have a feeling I may regret asking this, but when a Swift type conforms to a protocol/has a super type, is there a space before the colon? The auto-generated swift interfaces use a space. I have discovered that swift-syntax-generated output does not. "Type: Inheritance" or "Type : Inheritance"

Apr 25, 2025, 9:45 AM

Record data

{
  "uri": "at://did:plc:klsh7edzj3jmxucibyjqstb3/app.bsky.feed.post/3lnmwt6h3pc2d",
  "cid": "bafyreihgyo3rm3gi3gfaupoh7cwdbpbz6mvbts2pnvtjgbhr7j22z7e6ky",
  "value": {
    "text": "I have a feeling I may regret asking this, but when a Swift type conforms to a protocol/has a super type, is there a space before the colon?\n\nThe auto-generated swift interfaces use a space. I have discovered that swift-syntax-generated output does not.\n\n\"Type: Inheritance\" or \"Type : Inheritance\"",
    "$type": "app.bsky.feed.post",
    "langs": [
      "en"
    ],
    "createdAt": "2025-04-25T09:45:36.824Z"
  }
}