Adding Roman Numeral Literals to Python (2003)
peps.python.org
peps.python.org
Amazingly, R actually seems to support Roman numerals natively: https://stat.ethz.ch/R-manual/R-devel/library/utils/html/rom... Limited numerical range, but seems to have full support for treating them as normal numbers!
The Wolfram Language has some support for converting to and from Roman numerals [1], and Common Lisp's `format` takes a `@R` modifier to print a number as its Roman numeral [2].
[1] https://reference.wolfram.com/language/ref/RomanNumeral.html [2] http://www.lispworks.com/documentation/HyperSpec/Body/22_c.h...
By the way, did you know that the third Punic war officially ended in 1985, just 38 years ago?
What does "surrender" even mean?
Sorry, without a "/s", can't tell if joking.
Was some form of paperwork requirement the norm for officially ending a war back in 146BC?
Also, how do we know that no treaty was made then? A lot of documents can get lost, or just disintegrate, in 2,000 years.
> Rome still exists as the capital of Italy; the ruins of Carthage lie 16 km (10 mi) east of modern Tunis on the North African coast. A symbolic peace treaty was signed by Ugo Vetere and Chedli Klibi, the mayors of Rome and modern Carthage, respectively, on 5 February 1985; 2,131 years after the war ended. As of 2020 the modern settlement of Carthage was a district of the city of Tunis.
[1]: https://en.wikipedia.org/wiki/Third_Punic_War#Aftermath
Edit: But also, that does not answer my question of why Carthage surrendering did not officially end the war.
Enough with the revisionism already!
1985 is about 1500 years after the Western Roman empire perished in 476 CE, and about 2100 years after Carthage city was burned to the ground and the citizen was killed in 146 BC, marking the end of the Carthage civilization.
How is that date "official", exactly?
I think this made my day
/s
MIDI, MIC, MIX... I guess musicians didn't like this proposal :)
> Any literal composed entirely of M, D, C, L, X, V and I characters that does not follow this format will raise a syntax error, because explicit is better than implicit.
There isn't a standard for Roman numerals; you can largely do what you want. The Eighteenth Legion used XIIX.
But MIDI is obviously invalid by any standard.
You wouldn't expect to name a variable 15D5 would you?
https://metacpan.org/dist/Lingua-Romana-Perligata/view/lib/L...
E.g. here was an implementation of the roman numeral literals PEP, https://github.com/isidentical-archive/pepgrave/blob/master/... which is extremely simple AST manipulation
:D
Lots of people treat PEP8 as the word of god, but apparently have not bothered to read it. "Many projects have their own coding style guidelines. In the event of any conflicts, such project-specific guides take precedence for that project."
It’s an April Fools joke from forever ago…
When you want to add two roman numbers, you just i. put them together, ii. sort the digits in descending order, and iii. shorten all "iiiii" to "v", all "vv" to "x", and so on.
i. vii + xiii -> viixiii
ii. viixiii -> xviiiii
iii. xviiiii -> xvv -> xx