News for hackers. Stuff that matters.
Re:Why Does “=” Mean Assignment? by rcharles on Tuesday April 10, 2018 @04:25PM (#16804972)
Some(all?) compilers transform your code into something like this internally. Its called static single assignment form. https://en.wikipedia.org/wiki/Static_single_assignment_form
Re:Why Does “=” Mean Assignment? by njitbew on Tuesday April 10, 2018 @05:08PM (#16805445)
Though it's true that compilers usually turn assignments into SSA, that's not really the same as what parent was referring to. Static single assignment has the same semantics as normal C-style assignments. The parent was referring to assignments that have (Erlang's) pattern match semantics.

Also, there's a simple counterexample. You can have static single assignment that has dynamic multiple assignment (e.g. within a loop construct). Under the pattern-matching semantics, evaluating the assignment (or rather the pattern match) a second time could fail, whereas an assignment always succeeds.

Re:Why Does “=” Mean Assignment? by bogomipz on Wednesday April 11, 2018 @07:04AM (#16809836)
>"Though it's true that compilers usually turn assignments into SSA"

What is SSA here?

Re:Why Does “=” Mean Assignment? by macintux on Wednesday April 11, 2018 @08:46AM (#16810528)
Static single assignment (see Wikipedia link in grandparent).