Jc3s5h added a comment.

  I don't have experience coding in PHP, it appears PHP is a loosely typed 
language that converts among integers and floating point numbers implicitly, 
with no way to even declare which type a variable is. Trying to calendar 
programming in such a language is tricky, particularly since calendar 
programming is full of integer division and modulo operations that **depend** 
on the exact behavior of these functions, including how they work with negative 
numbers.
  
  My intuition is that many of the bug reports will be people feeding floats 
into functions only intended to use ints, or people who tried to predict the 
results with a desk calculator and didn't get the integer divisions right.
  
  If JanZerebecki has identifed some bug reports that JanZerebecki thinks are 
valid, it might be useful to list them.
  
  I have a widely respected book by Dershowitz & Reingold, //Calendrical 
Calculations//, which has tables giving examples of significant dates in 
several calendars, over a wide range of years. I would be happy to list some of 
these dates, and even test them in PHP. Is there any particular format that the 
test cases should be in?
  
  (Sure, I've never used PHP, but I've been adding languages to my collection 
since the days of punched cards.)

TASK DETAIL
  https://phabricator.wikimedia.org/T106923

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Jc3s5h
Cc: Jc3s5h, thiemowmde, Krenair, Aklapper, JanZerebecki, D3r1ck01, Izno, 
Wikidata-bugs, aude, TheDJ, Mbch331



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to