Reputation
85,833
Next tag badge:
450/400 score
79/80 answers
Badges
18 144 316
Newest
 Good Answer
Impact
~2.9m people reached

2h
answered Is it still valid to speak about anemic model in the context of functional programming?
7h
awarded  Good Answer
12h
answered It it a better to have the expected return at the beginning or at the end of a function?
1d
comment Efficient Value-Lookup in List of k-Tuples
For that matter, he should probably consider just using a relational database, instead of partially reinventing one.
2d
answered What are microcontrollers programmed in most in industry? C or Assembly?
May
1
revised Working with a large, messy object
replace unknown term with known anti-corruption term
May
1
comment Why can't Pull Requests be seriously implemented in Mercurial?
Mercurial is just as distributed. Mercurial and git differ in implementation details and minor features, but on the main points they are essentially identical.
Apr
30
answered Why can't Pull Requests be seriously implemented in Mercurial?
Apr
30
comment What is the point of calculating these variables this way?
The comments would tend to look like this code. It's always preferable to make your code explain itself.
Apr
29
awarded  Good Answer
Apr
28
comment Why do most mainstream languages not support “x < y < z” syntax for 3-way Boolean comparisons?
@david, the individual comparisons are indeed still binary, but to the parser it is ternary. It can't just magically desugar it without code to back that up. It has to be treated as ternary first.
Apr
28
awarded  Nice Answer
Apr
28
comment Why do most mainstream languages not support “x < y < z” syntax for 3-way Boolean comparisons?
I've edited to use the more familiar term. Most languages have one ternary operator, and it's symbols are not overloaded with binary symbols. Adding others would require adding a bunch of additional logic. Again, I'm not saying it's not possible, or that it's some big super-scary thing. However, it is extra work for a relatively minor use case.
Apr
28
revised Why do most mainstream languages not support “x < y < z” syntax for 3-way Boolean comparisons?
use more familiar term
Apr
28
comment Why do most mainstream languages not support “x < y < z” syntax for 3-way Boolean comparisons?
I never said it wasn't doable, just extra work with extra complexity. Other languages don't have to write any separate code just for handling their comparison operators. You get it for free with other binary operators. You just have to specify their precedence.
Apr
27
answered Why do most mainstream languages not support “x < y < z” syntax for 3-way Boolean comparisons?
Apr
24
awarded  Good Answer
Apr
22
answered Word ladder efficency problem
Apr
20
comment Why does FSharpLint suggest, “In F# code, use 'e1 || e2' instead of 'e1 or e2'”
Um, crazy guy who hasn't actually used F# speaking, but I'm guessing it's because there is no equivalent and operator. Or did I miss something here?
Apr
20
awarded  Great Answer