The Nature of Idioms in Programing Languages

By Xah Lee. Date: . Last updated: .

programing history of the day: the idiom craze, is started by perl and Larry Wall, from there we have “pythonic” fak.

there are 2 types of idioms: ① that makes algorithmic difference. ② not.

Only ① matters. For example, in python, intead appending string ten thousand times, use a list and append to list then convert it to string.

programing idiom should be ban'd. Only allow those that have algorithmic impact.

programing idioms, as in natural human langs, are incomprehensible and local, with no universal and permanance advantage.

idioms, plays big part in group formation. You can discern outsiders by idiom. Hither is me, my clan. Thither is you. Part of survival instinct.

if your lang requires lots idiosyncratic idioms to write clear and efficient algorithms, your lang is bad.

google plus discussion

Programing Idioms and Style