Lily Ballard recently discovered that Swift enables you to implement zero-argument subscripting. I’m writing about protocols today, so I thought I’d kick the wheels a little and see if I could create a monstrous use-case similar to my postfix printing fun I wrote about last year.
Like that implementation, this one passes-through its value, so printing becomes a simple side effect.
Comments are closed.