News for hackers. Stuff that matters.
Re:Phoenix 1.0 by lobster_johnson on Sunday August 30, 2015 @03:50PM (#10144298)
Pattern matching will only get you so far without static analysis, though?

For example, if I have a function that returns {foo}, and I change it to return {foo, bar}, then a pattern match on its return value that does {Foo} -> ... will fail at runtime, and the compiler won't pick it up, right?

In a statically type language (such as Go), changing the number (or type) of return values will result in compilation errors until all callers have been updated.

There are no comments on this comment yet.