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.

0

u/[deleted] Dec 17 '18

[deleted]

26

u/placidified Dec 17 '18

console.log(error) // eslint-disable-line no-console

cries in legacy code

3

u/Morphray Dec 17 '18

You forgot eslint-disable-line semi also

2

u/Anaphase Dec 17 '18

nah, that's in the base rules #fucksemicolons