Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Technical debt (or, mortgages in Haskell) (nobugs.org)
29 points by dons on Nov 22, 2009 | hide | past | favorite | 5 comments


I'm not sure whether I should be impressed or horrified by that postfix hack.


Even better is to follow up the original usage of that hack, by Lenart Augustsson (pretty much everything he does impresses me), where he embeds a BASIC interpreter in haskell and uses it to make

    10 PRINT "hello"
valid :)


    instance Num (MONEY -> Currency) where ...
Any hack with type "Money -> Currency" fits firmly in the "horrific" column.


I've got a pretty good spreadsheet for calculating Mortgages and payments etc. It's one used by a bank - if anyone wants a copy, mail me.


Upload it to Google docs and share it with everyone.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: