logoalt Hacker News

xenatoryesterday at 6:15 PM2 repliesview on HN

Does it conform Occam's razor rule to have something that can be easily done very similar way without changing language?


Replies

boothbyyesterday at 6:30 PM

Having some limited experience with lazy imports, yes, but this eliminates a lot of gross boilerplate. It also has the effect of "blessing" the practice of lazy imports which can have a cultural impact; it also prevents a situation wherein multiple subtly incompatible approaches to lazy imports become individually popular.

contravariantyesterday at 6:37 PM

Not sure that's Occam's razor any more.

Regardless lazy loading needs widespread use to be most effective so having a unified syntax and no extra dependencies makes a lot of sense.