oren @oren

Advice to all Python users: learn JavaScript

Jul 6, 2022, 10:01 PM
51
View all Parent

comments

Highlighted comment

python is better, you can make better malware :P

Yeah but at least JS doesn't require indents

neither does python :P

example: def func():print('helloworld')

Also, indents have to be 4 spaces, can't be 2

they can be anything as long as they are consistent

I'm not sure what you're using but it isn't standard python

Python doesn't mind whether you use two spaces or four spaces (or any other number of spaces) as long as you are consistent. For example if you start off using four spaces for an indent, then you should always use four spaces.

See more replies

Honestly indenting makes the code looks better and more readable.

yes but its annoying that the indention is necessary

you do realize that node and deno exist, right?