lauripiispanen / angular-bacon

Angular-bacon.js bindings
MIT License
146 stars 16 forks source link

Make the example more functional with reusable filter functions #4

Closed DjebbZ closed 11 years ago

DjebbZ commented 11 years ago

The only real change in the reusable filter functions is that they check the parameter before accessing its length property. Otherwise it's "just functional sugar" (but the whole point of FP and FRP, right ? :D).

BTW, thanks for the plugin, I'm sure I'll use for my next (really first) Angular project.

lauripiispanen commented 11 years ago

Looks awesome! Just one thing I'm thinking: how about "shorterThan" and "longerThan" instead of "greaterThan" etc. We're looking at length here instead of plain comparison, right?

DjebbZ commented 11 years ago

I'm really a beginner in FP and FRP (learning Haskell these days...), but this is what I like with them : it makes semantics not only matter, but shine.