First of all, I learned pascal and C as early as I was in college. Actually, I am a python fans and now I am writing programs in python. I have also read the ruby syntax, but I have never handwritten the ruby program.
I have read an article covering blind programmers on the internet. Blind programmers say they can use C, perl, java, and ruby, but they cannot use python because they cannot see whether they have indented a few spaces.
Self-close function of control flow: pascal is implemented by begin... end; C is implemented.
In fact, python is not afraid of innovation. In the future, python can replace strict indentation with semicolons. indentation will still be used, but it is no longer necessary syntax.
A single statement uses '\ n' as the end mark of the statement. A semicolon cannot be used to represent the end mark of a single statement,
Because the semicolon is redefined as the control flow end flag.
Self-close function of control flow: python will be used in the future:...; implementation.
Import semicolon
If expression:
Statement
Elif:
Statement
Else:
Statement
; # Indicates end
For I in range (n ):
Statement
; # Indicates end
While expression:
Statement
; # Indicates end
Def function:
Statement
; # Indicates endfunction
Clase name:
Def funcation1:
Statement
;;
Def funcation2:
Statement
;;
; # Indicates the endclass
Finally, you need to develop the function of automatic formatting, like C lint.
The control flow self-close function enables python to easily implement ruby closures.