Talk:Arithmetic/Rational: Difference between revisions

(→‎Too long language examples: relax the requirement maybe)
Line 47:
 
: You can either write an elaborate, robust example, or a short, clear example, but rarely both. And it doesn't help that this task is asking for too much. Why integer division operator? Why abs aperator? What's the "etc" in "cast int to frac, etc"? For a fraction implemetation to be reasonably useful, arbitrary length integer like GMP is almost a must, but GMP already implements rationals, making an implemetation pointless. I think the task could be changed so that if an example implementation made the basic idea of a fraction class clear enough, and good enough to do the given test, it should be considered done. After all, code here intend to demonstrate, not to serve production needs. --[[User:Ledrug|Ledrug]] 02:10, 30 July 2011 (UTC)
:: +1 on that. --[[User:Paddy3118|Paddy3118]] 03:03, 30 July 2011 (UTC)
Anonymous user