#OCaml tip: when you function takes several arguments of the same type (e.g. two booleans), or even generic types (e.g. 'a and 'b) that in practice would be non-disjoint in callers, use labeled arguments. This way, you'll avoid bugs due to inadvertently mixing up arguments.
In this case, they must NOT be opaque, just distinct. I use an && between those two booleans. Don't make me reinvent that with pattern-matching. The labels are lightweight just-in-time constructors for distinct types, also deconstructed just-in-time. Just what the doctor ordered.
-
-
One bad point for
#OCaml: the syntax for calling and defining functions with labels isn't the same as the syntax for building and matching records.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Ha I see. That makes sense
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!