Be careful with default values for arguments!

preview_player
Показать описание
#iOS #swift #softwaredeveloper #iosdeveloper

Thank you for watching this video 🙌

(affiliate link)
Рекомендации по теме
Комментарии
Автор

So tell me, did you ever get weird bugs because of this behavior? Let me know in the comments 🚀

v_pradeilles
Автор

Very interesting. Thanks for sharing this lesson!

arkemal
Автор

Never experienced that issue but this is indeed really confusing. Thanks for underlying this weird behavior!

WilfriedJosset
Автор

I wonder if swift can dynamically set the default value for function params. is there a swift evolution to propose this?

andybezaire
Автор

Is the behaviour still the same if the method tagged with @objc and exposed to the Objective-C runtime?

Автор

Wow crazy. It reminds me of the trap with default implementations of protocols for subclasses

fredericadda
Автор

Ça fait froid dans le dos… c’est la raison pour laquelle j’utilise toujours une structure au lieu d’une classe

teamdjamodjamo
Автор

Interesting behaviour, thanks for sharing

mykytakhlamov