DEV Community

[Comment from a deleted post]
 
maixuanhan profile image
Han Mai

You are driving the discussion. I barely talk about the language and performance. You are uncertain in something doesn't mean every body is. I said it depends for a reason. Let's take a simple example, create an array contain the first 1000000 natural numbers. My take will be for and push. It is straight forward enough. Js has GC doesn't mean that you should abuse it. Your way of copying data is not suitable for data processing where performance is crucial. Period. Don't be obsessed and you should be aware of it pros and cons. And please don't expect everyone has same coding style as yours. I can accept the beautiful of FP why don't you accept its ugly?