3 ms·
> Why is Python more readable? [...] Second is the use of short words instead of symbols. Perhaps the Haskell is trying a little to hard to feel like algebra?
by vorg 15y ago
> Why is Python more readable? [...] Second is the use of short words instead of symbols. Perhaps the Haskell is trying a little to hard to feel like algebra? [...] Python goes further than most to use short concise words; COBOL used long words
To make words even shorter than in Python without resorting to Haskell-like symbols, try ChinesePython (http://www.chinesepython.org/english/english.html http://www.chinesepython.org/english/english.html). Here's some examples from their site:
寫 ..(print)
刪除 ..(del)
定義/函數 (def)
忽略 (pass)
中斷 (break)
下一個 (continue)
傳回 (return)
示警 (raise)
載入 ... 名 ... (import ... as ...)
從 ... 載入 ...
共用 (global)
執行 (exec)
斷言 (assert)
如 .. 不然 .. 否則 .. (if .. elif .. else ..)
只要 .. 否則 .. (while .. else ..)
取 .. 自 .. 然後 .. (for .. in .. else ..)
試 .. 失敗 .. 否則 .. 然後 .. (try .. except .. else .. finally .. )
概念/類別 (class)
來自/不來自 (in / not in)
是/不是 (is / is not)
或 or
且 and
不是 not