Talk:Arithmetic/Rational: Difference between revisions

→‎Too long language examples: relax the requirement maybe
(→‎Too long language examples: relax the requirement maybe)
Line 45:
 
For comparison reasons it might be best to encourage people, maybe other people, to complete short examples and link to their entries when their completed entries are moved to a sub-page. In that case marking them as incomplete would help those searching for examples to finish-off. --[[User:Paddy3118|Paddy3118]] 00:58, 30 July 2011 (UTC)
 
: 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)
Anonymous user