G
G
Gold Apple2021-02-26 18:34:02
Closures
Gold Apple, 2021-02-26 18:34:02

Are closures necessary in Swift?

I am learning the language and the topic of closures was extremely difficult and disgusting for me. Syntax in understanding is difficult, although it would seem simple. Still, I would like to ask if you use closures, and is this topic really important?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2021-02-26
@ApGoldle

umm.... closures are just a way to keep the space above and make the code clearer.
yes, you can do without them. but better with them.
what exactly is your problem?

B
briahas, 2021-02-26
@briahas

In short, yes, to both questions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question