Question d’entretien chez Poshmark

difference between delegate and blocks?

Réponse à la question d'entretien

Utilisateur anonyme

24 mai 2021

Delegate is process oriented and blocks are result oriented like completion handler. Delegates provides more readability and transparent to understand what a class expect from other class... I answered almost all the answer discussed in stack overflow.. but interviewer is still asking why can we use blocks instead of delegate...