Hacker News new | past | comments | ask | show | jobs | submit login

> Is it crazy if I think that first example is the most readable of the three?

No. That's simply the difference between imperative and functional code. If you don't know the latter you could never understand this.

For the most part, the last example is equivalent to `let result = file && parse(file);`, but there are important differences to consider in JavaScript at runtime.




Interesting, okay, makes sense. Thanks for the explanation.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: