Talk:D (programming language): Difference between revisions

Content deleted Content added
Notification of altered sources needing review #IABot (v1.5)
Line 131:
 
Is there any reason the factorial example uses ulong instead of int? In example code clarity rules and for most readers int would be clearer. [[Special:Contributions/70.124.88.175|70.124.88.175]] ([[User talk:70.124.88.175|talk]]) 04:36, 23 September 2013 (UTC)
: Probably because the factorial function doesn't operate on or produce signed numbers (outside of operation on complex numbers, which aren't handled here). Int implies that the function can handle them as input and would require a slightly more complicated check in the first if statement. "Clearer" isn't useful if it isn't correct. [[User:A Shortfall Of Gravitas|A Shortfall Of Gravitas]] ([[User talk:A Shortfall Of Gravitas|talk]]) 06:35, 25 February 2020 (UTC)
 
== Another D programming language in the 1980ies ==