You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adopting-the-clojure-mindset.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# Adopting The Clojure Mindset
2
2
3
-
Most languages have reference types and value types, mutables and immutables. JavaScript is no different, but it suffers gaps when it comes to value types. It has only the basics, like strings and numbers but in recognizing the deficit aims to fill some of its gaps—[records and tuples](https://github.com/tc39/proposal-record-tuple) and [temporals](https://github.com/tc39/proposal-temporal).
3
+
Most languages have reference types and value types, mutables and immutables. JavaScript is no different, but has gaps in its value types (e.g. [records and tuples](https://github.com/tc39/proposal-record-tuple) and [temporals](https://github.com/tc39/proposal-temporal)).
4
4
5
-
Understand, however, while functional programming does better when a robust set of value types are present, it's not seriously hindered when they're not. It can treat reference types as value types.
5
+
And while functional programming does better when a robust set of value types are present, it's not seriously hindered when they're not. It can treat reference types as value types.
6
6
7
7
Briefly, recall that command-query separation wants query functions to return a value but not command functions. The stark absence of a return value calls it out as a command.
0 commit comments