Toot

Written by mattcomi on 2025-01-14 at 04:06

Another developer quirk of mine (this one is particularly quirky).

If I'm conforming to a protocol, and a function is being intentionally left blank, I'll put the opening and closing brackets on the same line, after the declaration.

struct ConsoleLogger: Logger {

func flush() {}

}

This signals that the function has been left blank deliberately, not accidentally.

=> More informations about this toot | View the thread | More toots from mattcomi@hachyderm.io

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113824732230527763
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
223.80071 milliseconds
Gemini-to-HTML Time
0.715431 milliseconds

This content has been proxied by September (ba2dc).