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.
-
Very naive question here, and sort of a philosophical one. Would it make sense for
PlaydateGame
callbacks (update()
,gameWillPause()
, etc.) to have nil implementations provided inPlaydateGame
, thereby requiring the a dev to use anoverride
keyword to implement them?The benefits are largely the ones that that come from the
override
keyword in other contexts:Beta Was this translation helpful? Give feedback.
All reactions