3 ms·
Because one is an expression like humans think of it and one is a pile of OOP. The former is more desirable. The data types are also obvious.
by nickpsecurity 11y ago
Because one is an expression like humans think of it and one is a pile of OOP. The former is more desirable. The data types are also obvious.
- ehartsuyker 11y agoHow is "1m" more obvious that "plusMonths(1)"? I mean really, the latter is basically and English phrase. I know it's cool to shit all over OOP and Java these days, but if Haskell/Clojure/Whatever had a function (plusMonths dt 1) or something that, you wouldn't call it a pile of FP.
- nickpsecurity 11y agoI said elsewhere id add a letter to distinguish months, minutes, etc. Otherwise, you missing larger picture: it's a time series analysis language with an expression adding a value to a date. So the value's letters are a datatype or unit of time. That simple.