『騛罿』── 非同的禪!!

吉多·范羅蘇姆 Guido van Rossum 先生喜歡看『蒙提·派森的飛行馬戲團』── Monty Python’s Flying Circus,所以把他創始的程式語言叫做 『 Python 』 。Python 巨蟒,《爾雅·釋魚》蟒,王蛇。又《註》蟒,蛇最大者,故曰王蛇。正是『小王子』一書上所說的︰

吞了象,看起來像帽子的那個。

吉多的 Python 『非同』於其他程式語言,居然把『空白』符號寫進了它的『文法』裡,竟然用『對齊的空白』表示程式區塊。如是種種『見地』,匯聚成一條稱作『非同的』pythonic  Way 大道。吉多他的『中心思想』,集中的表現在由 Tim Peters 先生所寫的『 Python 的禪』,收錄在『 this模組 module 裡︰

import this

The Zen of Python, by Tim Peters

Beautiful is better than ugly.
美比醜好

Explicit is better than implicit.
明白比晦暗好

Simple is better than complex.
簡單比複雜好

Complex is better than complicated.
複雜比複雜化好

Flat is better than nested.
平直比疊套好

Sparse is better than dense.
薄落比濃縮好

Readability counts.
可讀性能加分

Special cases aren’t special enough to break the rules.
特例不夠特殊到能夠破壞規矩

Although practicality beats purity.
雖然獨特性能打敗純粹性

Errors should never pass silently.
錯誤不該無言放過

Unless explicitly silenced.
除非指明它是靜默寡詞

In the face of ambiguity, refuse the temptation to guess.
面對含混,拒絕揣測意圖

There should be one– and preferably only one –obvious way to do it.
總有一個,最好是唯一的一個,明白的作法

Although that way may not be obvious at first unless you’re Dutch.
即使起初那條道路並不明顯,除非你很「好辯」

Now is better than never.
當下好於從不

Although never is often better than *right* now.
雖然從不也常常好過馬上

If the implementation is hard to explain, it’s a bad idea.
如果一件事很難說明怎麼做成的,那這個想法不好

If the implementation is easy to explain, it may be a good idea.
反之如果一件事怎麼做,很容易說明白,也許是個好想法

Namespaces are one honking great idea — let’s do more of those!
「名字空間」的理念──響亮著的偉大號角,就讓我們多多用它吧

這麼好的一個程式語言,缺少一個對當的中文譯名,實在可惜。在此野人獻曝,『姑妄言之』。或可譯作『騛罿』ㄈㄟ  ㄊㄨㄥˊ與 Python 音聲相合。『罿』是捕鳥的網、捕魚的網;不管天上飛的,水裡游的,一網打盡。似乎合於 Python 語言多『典範』  的特殊性paradigm ── 『物件導向』、『結構化』和『泛函式』程式設計 ──。『』字,古駿馬名 ──『飛兔』之馬,正可比擬 Python 的『哲學之美』。

讀者就『姑妄聽之』吧!!