Talk:Total circles area: Difference between revisions

Line 76:
:: Right, I am sorry. In a (Haskell) program types contain lot of information (like telling apart two tuples that contain two doubles). For a second programmer that tries to add more of such information it's easy to miss part of the semantics and introduce wrong type information. I will try to introduce a Angle2 type and fix the code. I am an Haskell newbie myself, but we are learning. --[[User:Bearophile|bearophile]] 19:36, 21 September 2012 (UTC)
:: Done. Please take a look at the code, to make sure I have not used an Angle where instead goes a normal Double, and I have not used an Angle2 where a Vet instead goes.
 
::: I think it's fine. I changed the polyline area function, maybe it's clearer this way. Also added some comments explaining some odd stuff I did in the code. One thing sort of amuses me is, is there really a need for an <code>Angle</code> type? I mean, it does no harm, but angles are really just plain numbers and doesn't do anything to distinguish itself from a <code>Double</code>. --[[User:Ledrug|Ledrug]] 06:11, 22 September 2012 (UTC)
 
==Link==
Anonymous user