Skip to content

Comment on Speedup from switch to +=parent

Comments

Might be platform dependent whether that first line counts as a mutate or not, seeing as it can be converted to not do anything in some cases.

All of the lines that have += mutate x in place

Unless x is immutable, in which case the semantics of both variants agree.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.