News for hackers. Stuff that matters.
Re:Should function arguments be reassignable or mutable? by tjwii on Monday January 01, 2018 @09:11AM (#16046103)
I think immutability of arguments should be optional by using a const keyword, like in c:

  int add(const int a, const int b);
Re:Should function arguments be reassignable or mutable? by bmm6o on Monday January 01, 2018 @11:06AM (#16046548)
The downside to this syntactic approach is that the implementation details are leaked in the signature.
Re:Should function arguments be reassignable or mutable? by Can_Not on Monday January 01, 2018 @10:25PM (#16049638)
I think it would better if they were immutable by default and instead of making them const, you would mark them mutable or reference.