Been dinking with Erlang for a couple of days, just working my way through Programming Erlang, which has been sitting on my bookshelf for over a year now largely untouched.
When I went back to Python in April, one thing I noticed was how non-pythonic my code was unless I paid attention to what I was implementing and thought about the “right way” to do it in Python. Simple example: it seems to take me a couple twisted for loops before I remember list comprehensions; I’ve been coding in C and C++ for so much longer than anything else that that’s the first way my brain tries to implement anything. I had the same experience when I did some JavaScript tinkering earlier.
So, the brilliant thing about moving on to Erlang is that it’s nigh impossible to turn it into C or C++. = is not an assignment operator! Recursion is the order of the day! This is just the sort of mind-bending place where I need to dwell for a while to get out of my C/C++ imperative programming rut.