I'm working on modernizing Rosetta Code's infrastructure. Starting with communications. Please accept this time-limited open invite to RC's Slack.. --Michael Mol (talk) 20:59, 30 May 2020 (UTC)

Talk:Imaginary base numbers

From Rosetta Code

couple of minor points[edit]

When translating the Sidef code to Phix, one thing I noticed is that parse_base() never has to deal with a leading '-', so I took that out. As far as I understand it, imaginary base numbers never use a minus sign. The same unnecessary handling exists in the Perl6 code. Also, the even entries in the second half of the output from Kotlin, Java, Go, D, and C# all fail to trim the unnecessary trailing ".0" (as the heading says, both pretty minor points). Pete Lomax (talk) 04:21, 9 November 2018 (UTC)

"When translating the Sidef code to Phix, one thing I noticed is that parse_base() never has to deal with a leading '-'"...
I put that in there following the principle of "Be liberal in what you accept and conservative in what you emit."
But you're not wrong; assuming well formed input, that line is redundant. --Thundergnat (talk) 13:12, 9 November 2018 (UTC)