2 ms·
The most significant Aha! moments that I've had from using array languages (mostly k) were: - Verbs are algorithms. Imperative and object-oriented languages re
by icsa 3y ago
The most significant Aha! moments that I've had from using array languages (mostly k) were:
- Verbs are algorithms. Imperative and object-oriented languages require the implementation of common algorithms (e.g. find, sort, and group).
- A sequence of verbs (or adverbs) is the most direct form of composition I've ever used. Composition is easy and fluent.
- Programs are the composition of algorithms and not a collection of statements & expressions.
- The concept of domain and range treated uniformly across arrays, maps, and functions simplifies my design choices.
- Left of right evaluation means that my eyes don't have to "jump around" when reading code.
- Sending code to data is possible & preferred. Most of my significant k projects fit in a network MTU (i.e. 1540 bytes), not including comments.
K bonus:
- Views (i.e. dependencies) can implement functional relationships directly.
- Hot code (via the interpreter) loading makes "forever" applications possible.