Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats wrong with using backticks in a void context?

backticks context void wrong
0
Posted

Whats wrong with using backticks in a void context?

0

Strictly speaking, nothing. Stylistically speaking, it’s not a good way to write maintainable code because backticks have a (potentially humungous) return value, and you’re ignoring it. It’s may also not be very efficient, because you have to read in all the lines of output, allocate memory for them, and then throw it away.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123