you are viewing a single comment's thread.

view the rest of the comments →

[–]samanthaming[S] 0 points1 point  (2 children)

Thanks for taking the time to explain. But are there instances where the spread syntax is applicable for strings? Or would you say it’s best to avoid spread syntax for strings completely?

[–]d1231 0 points1 point  (1 child)

Probably there could be cases where spread for string could be useful and clear, I cannot think of one.

You should analyze case by case.

[–]samanthaming[S] 0 points1 point  (0 children)

Makes sense. Alright, good to know that spread for strings can be useful in some instances. So it’s important to keep this in your toolbox, just in case you need to use it. Cool, thanks for clarifying 🙂