Pregunta de entrevista de Poshmark

difference between delegate and blocks?

Respuesta de la entrevista

Anónimo

24 may 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...