𝐌𝐨𝐭𝐨𝐧𝐨𝐫𝐦𝐚𝐭𝐢𝐯𝐢𝐭𝐲 [𝑛𝑜𝑢𝑛]: 1. the double standards we apply to the car-dominated status quo in the face of potential change. 2. also known #CarBrain
(🖼️ by @davewalker)
Every so often I remember shell’s line-continuation character “\” is “just” escaping the newline that comes next in the bytes and I lose some brain cells.
Can we define (in Haskell) a record in place? Like
myValue = data MyRecordName {
foo = "Bar" }
which would define record MyRecordName and assign is straight to this value.
Still experimental, but while this might seem as a very small #Scala feature, it's going to make pattern matching so much easier and useful - and hence more widespread.
Pattern matching immutable data is one of *the* most useful traits of FP!
My take on the whole “pure FP” current thing is that I don’t super care about purity per se. For me it’s only a vehicle to compositionality, which is what I’m really after.
There are only two ways to understand programs: