Interestingly, some languages do not use semicolons and curly braces, although their predecessors had them. Personally, it makes me nervous to write Python code because of this. Semicolons are also missing in GO GO, although lexer uses a rule to automatically enter semicolons when scanning.
Why don't some languages use semicolons and braces?
Each programming language must somehow distinguish between the end of an operator, a list of function call parameters, or a block of code from the following.
Some languages use; and {} (C, Java)
( x86)
s- (Lisp, Clojure)
(Python)
, begin... end (Pascal, Delphi)
, . - ; {}, ...
, , , - - . .
, , () - , , .
, # ... , , , ( ). , , .
, . , ( {};, /, ) ; , - .
Python . , , . , , , , , :
, , , , . ~ -, , 1918
, , ...??
: (. ), /, . , Python , . , , :)
- for(i=0;i<=100;i++);, , Python...
for(i=0;i<=100;i++);
" ."
, ?
, " ", , . :
Python Haskell .
Clu Lua .
ML let -, , .
let
Bourne
, . Schemers, Olin Shivers, , , .
, , , , .. , . , - , . ( , , , , , , .)
, , ?
, , , . , , . ?
, , , . , , ? , ... - , . .
, : . , , , / , (, , , ), , , Python, . . , .
, . begin end , : ", , , , , , - , ...". , , ; , , , , , , : lexer .
begin end
{} ( , ), . ++ ,
{ lua_table tab; { lua_string str; } }
, Lua- ++ .
, "" .
, ( ) - .
, .
I really don't understand why you are asking. Do you hate writing Python code? Well don't! No one canceled C / C ++, etc.
Source: https://habr.com/ru/post/1745771/More articles:Display after deletion in a linked list in C - cУдалить содержимое списка из другого списка - listParse NTFS partition in C - cMSDN Security Descriptors Note - windowsScreen Scraping - как получить отфильтрованные данные на основе AJAX - asp.netHow does CouchDB perform for a regularly updated dataset? - performanceSort SQL query nvarchar - sqlWhy do I want to use anything other than WCF? - web-servicesUse onclick event when JS is on, go to url when it's not - javascriptButton with text below - qtAll Articles