r/javascript • • Dec 16 '18

Coming from Python to JS NSFW

const print = console.log

I found my safe space.

607 Upvotes

156 comments sorted by

View all comments

94

u/mishugashu Dec 16 '18

If I came across that shit at work, I'd git blame in a heartbeat and tell you to never do that again.

But if you're doing it in personal projects, more power to you, I guess. Nothing really wrong with it code-wise.

4

u/kchoudhury Dec 17 '18

He aliased a function and it is amply obvious what it does. What standard did he violate?

5

u/mrbojingle Dec 17 '18

none, some people are just anal.