Understanding assignment in pattern-matching functional languages.
Unlike Clojure, as far as I know Elixir does not have a library of foundational higher-order functions such as like lift or complement. So I’ll have to build them myself. Before I do anything else, I need a helper function for adapting the arity of anonymous functions. This is because Elixir has no support for […]
This is where FPOO starts to get interesting. I have to say I find the choice of the term “dataflow” confusing due to its other associations in programming. But this section introduces a style of working with data–first annotating it, then filtering it–which I’ve never really given a lot of thought to. I’m going to […]
Continuing to translate the code from Brian Marick’s “Functional Programming for the Object Oriented Programmer” into Elixir.
So far, my tiny object system in Elixir has been stowing all methods directly in instances. Chapter 5 of FPOO directs me to move instance methods out into a “class” of some kind. First off, there’s no more new_point . In its place, a simple keyword list defining attributes of the class. The instance variables […]