Here’s the thing. In our earlier busy thread, Jaime Jessop was thinking like a Haskell programmer and John Ridgway a Ruby one. Perhaps even more fascinating, what was the government thinking?
References:
Wikipedia : Assignment (computer science)
Demystifying Haskell assignment
What’s New In Python 3.8 – Assignment expressions
Why did I include Basic and Python? Because traditionally, from 1970s, Basic was the teaching language of choice. A terrible choice, we’d all I hope agree with the benefit of 2020 hindsight. Nowadays my hunch is that Python is the leading teaching language in schools but I’d be very open to correction by any passing stats nerds.
The irony is that Jaime admitted to having only learnt programming through Fortran at university (I hated it too) and Fortran was probably the biggest reason the much-disputed and derided
today = “Tuesday”
money = 35000hope_would_be_a_fine_thing = true
syntax for assignment prevailed in imperative languages. (The C language kept the bad habit going and was followed in the 1990s by Python, Ruby and JavaScript. Though there are subtle differences even then, as the Python reference shows.)
It’s clear Jaime had put that evil behind her and instinctively adopted the high-minded – not to say snobby – Haskell line:
Haskell has two separate symbols for
<-and=because assignment and equality are not the same thing. Haskell just happens to be the first mainstream language that supports mathematical equality, which is why the language requires this symbolic distinction.
They are snobby, some of them. But not the great Simon Peyton-Jones, one of two Simons I knew at Cambridge who have since been admitted to the Royal Society. (There weren’t many other names, to be frank.)
The last time I talked to Simon, after a talk of his in London in 2017, it was to ask how he thought the teaching of coding is going in UK schools. He was at pains to say that Python he thinks is fine for kids, not the much more mathematically pure and rigorous language to which he has devoted his adult life.
In their choice, then, did the government intend to signal, subliminally, to those who have learned at least a modicum of coding, that it was ever so down-with-the-kids. I think we should be told.
via Climate Scepticism
May 12, 2020 at 08:14AM

