News for hackers. Stuff that matters.
Re:How to Force Your Kids to Do Math? by uwagar on Sunday April 20, 2025 @01:12AM (#43741668)
back when we was new in programming it was similarly difficult to grok

X = X + 1

once we got it, it was a like new world!

Re:How to Force Your Kids to Do Math? by 5- on Sunday April 20, 2025 @01:24AM (#43741699)
most likely this very unfortunate misnomer started with fortran, where it was deemed lucrative to point out "how much programs look like mathematic formulas!".

not only is this overloading a symbol (equality) with a completely different meaning (assignment), it is also a poor choice typographically, as it represents a directional operation with a directionless symbol.

using an arrow for assignment is much better.

it's also worth pointing out that unlike most others, logic programming languages (e.g. prolog) have actual variables, not references to mutable or immutable memory cells.

Re:How to Force Your Kids to Do Math? by uwagar on Sunday April 20, 2025 @10:00AM (#43743809)
arrow for assignment is cool, but the backspace key is the only closest arrow-like key on the keyboard but it has a different purpose. plus the arrow key should be laid out such that u dont have to press a SHIFT/CTRL/ALT to produce it.

for this reason, i felt C a breath of fresh air cos u could just assign using = instead of what we was doing in pascal which was the horrible := where u had to press SHIFT for the :

things like this matter.

Re:How to Force Your Kids to Do Math? by dr_kiszonka on Sunday April 20, 2025 @11:46AM (#43744516)
Right. If we went more in the direction of APL, we would have had way more symbols.

https://upload.wikimedia.org/wikipedia/commons/9/94/APL-keyb...