Luke Lee

Software Engineer

Web + Desktop + Science

Fork me on Github

Interesting syntactic sugar

Python is a dynamic language that allows you do interesting things, including adding syntactic sugar to your code. Often times this 'sugar' leads to less readable code in my opinion. However, it's still interesting to see what people come up with. For example, here's an interesting take on regex synactic sugar for Python.

I think the result is less readable, but it's an interesting use of some advanced techniques including metaclasses and operator overloading.

Published: 08-21-2014 19:28:14