Skip to content

Commit

Permalink
edit copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario T. Lanza committed May 28, 2024
1 parent 4ef2e36 commit db6d6a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adopting-the-clojure-mindset.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Adopting The Clojure Mindset

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).
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)).

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.
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.

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.

Expand Down

0 comments on commit db6d6a6

Please sign in to comment.