
Small Thing, Big Impact
Original by author I will tell about a very obvious topic: trailing comma. Maybe many of you handle this and now even care about it, because it looks very natural to put a comma after the last parameter when you define a function or a class, or call them in the code. It is just my self-reflection, and I try to formulate and finalize this moment for myself. Trailing comma is the basic concept now, but we need slightly back to understand why it rise. First programming language where comma as separator allows in syntax count the first version of Perl designed by Larry Wall (December 1987). It wasn't directly mentioned in documentation, but this syntax didn't cause any problem. It was explicitly documented only in Perl 4 (1991). After this trailing comma step by step as a concept start appears in many languages, in most cases in limited scope (Python, Ruby, JavaScript, C#). This picture quickly change after invention Git in 2005. With increasing popularity this version control system, trai
Continue reading on Dev.to Python
Opens in a new tab



