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

337

u/Pavlo100 Dec 16 '18

Here is the Java implementation for those who want to make their life harder

const System = {out: {println: console.log}};
System.out.println("why?");

98

u/blasto_blastocyst Dec 17 '18 edited Dec 17 '18
import com.half.your.ram.is.gone.for.no.reason;

2

u/YasZedOP Dec 17 '18

Could you explain why this would result in more RAM usage?

4

u/LaSalsiccione Dec 17 '18

It’s a joke about Java/JVM being memory hungry I believe