Require override for callbacks?
#107
Replies: 2 comments
-
|
I should have looked at the implementation first: I still kinda like having a keyword to override these implementations! But I get the possible benefits for making |
Beta Was this translation helpful? Give feedback.
-
|
I think this is a good point, I don't think there was any specific reason I chose a protocol over an open class. An open class is probably slightly more idiomatic in this case, and I like the benefit of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Very naive question here, and sort of a philosophical one. Would it make sense for
PlaydateGamecallbacks (update(),gameWillPause(), etc.) to have nil implementations provided inPlaydateGame, thereby requiring the a dev to use anoverridekeyword to implement them?The benefits are largely the ones that that come from the
overridekeyword in other contexts:Beta Was this translation helpful? Give feedback.
All reactions