If programming isn’t political enough for you, maybe you need to try a new language. How about TrumpScript, which lets you create code that the great Donald Trump would be proud to execute. If he could, you know, understand it.
Created at Rice Univeristy’s HackRice last weekend in just 20 hours, its makers claim that it’s “the programming language Trump would approve of. Just like he is making America great again, we hope our efforts will make programming great again.”
Based on Python, TrumpScript contains some unique features, as its creators explain:
- No floating point numbers, only integers. America never does anything halfway.
- All numbers must be strictly greater than 1 million. The small stuff is inconsequential to us.
- There are no import statements allowed. All code has to be home-grown and American made.
- Instead of True and False, we have fact and lie.
- All programs must end with “America is great.”
Error messages — which presumably Trump would get a lot of himself given his understanding of technology — are mostly quotes taken from the man himself. Incorrect syntax, though, will see you being told that “Trump doesn’t want to hear it.”
TrumpScript follows in the fine footsteps of the Arnold Schwarzenegger.programming language of 2014, which was equally amusing. In ArnoldC, as it was called, every program had to start with “IT’S SHOWTIME” and end with “YOU HAVE BEEN TERMINATED.”
You can download everything you need to use TrumpScript over on GitHub. Good luck.
[TrumpScript via BoingBoing]
This article originally appeared in Gizmodo Australia
Comments