News for hackers. Stuff that matters.
Re:SSA is Functional Programming (1998) [pdf] by mattnewport on Saturday January 12, 2019 @07:28PM (#18894158)
I tend to write C++ in a sort of limited SSA form a lot of the time: almost all local variables and parameters const, class members all initialized in the constructor initializer list, mutation confined to small functions or lambdas. If you're not familiar with const in C++, using it for locals and parameters gives you compiler checking that you're not modifying variables after assignment. This is one of the biggest things I miss from C++ when writing C#.

Containers can make things a bit trickier but using algorithms and confining most mutation to helper functions makes it doable a lot of the time. The new ranges library being standardized for C++ 20 makes it more convenient to use containers in this style.

Re:SSA is Functional Programming (1998) [pdf] by pjmlp on Sunday January 13, 2019 @05:14AM (#18896030)
I am with you on const.