News for hackers. Stuff that matters.
Re:“I'm basically giving myself a permanent vacation from be... by jstimpfle on Thursday July 12, 2018 @07:35PM (#17519488)
The most important "program" that reads your source code is probably in your brain. You probably have some "tooling" in their that is on the watch for "if (x = y)" and other patterns, but I'm sure you'd prefer to not have to run it.

As another counterexample let me give you "language tooling". For example, write a tool that generates a FFI from $LANGUAGE to C. Is it really so unimportant that $LANGUAGE is clean and simple and easy to parse?

Re:“I'm basically giving myself a permanent vacation from be... by sbjs on Thursday July 12, 2018 @10:39PM (#17520132)
> "The most important "program" that reads your source code is probably in your brain."

Not if you have a good Integrated Development Environment (or IDE for short)! That's an even better "program" than your brain, because it shows syntax errors and other warnings right next to your code. It will literally put little red squiggly lines right under `if (x = 1)` and show the file as red in your file explorer side-bar, and when you hover over this line it will give you a tool tip saying "this assigns a new value, it's probably not what you meant, I can either turn it into x == 1 or ((x = 1)), which one do you want?" That is the power of IDEs and they are amazing. We should consider them an integral part of writing code and not fight them or be afraid of them!

Re:“I'm basically giving myself a permanent vacation from be... by b0rsuk on Friday July 13, 2018 @12:06AM (#17520454)
You can't assume that every single person will have a good IDE. And you will be reading and maintaining code written by people who don't. In that case I prefer to deal with a language which guarantees no trivial errors.
Re:“I'm basically giving myself a permanent vacation from be... by skywhopper on Friday July 13, 2018 @01:28AM (#17520713)
I agree with your points about IDEs but alas no such language exists to keep you from simple errors.
Re:“I'm basically giving myself a permanent vacation from be... by skywhopper on Friday July 13, 2018 @01:27AM (#17520708)
I disagree... I don’t really have this problem though. = and == are pretty visually distinct to me. As much as > and < or & and @ (or == and :=).

But the best solution is probably to just drop the = as an operator altogether.

Re:“I'm basically giving myself a permanent vacation from be... by jstimpfle on Friday July 13, 2018 @04:49AM (#17521430)
> that $LANGUAGE is clean

s/\$LANGUAGE/C/