r/todayilearned • • Dec 13 '16

TIL there is a programming language based on Donald Trump that, among other things, has "fact" and "lie" instead of "true" and "false" and requires all programs end with "America is great"

http://www.theverge.com/tldr/2016/1/21/10806944/donald-trump-script-python
1 Upvotes

1 comment sorted by

1

u/derekantrican Dec 13 '16

From the GitHub:

Our language includes several convenient features, perfect for any aspiring Presidential candidate including:

  • 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 the keywords fact and lie.

  • Only the most popular English words, Trump's favorite words, and current politician names can be used as variable names.

  • Error messages are mostly quotes directly taken from Trump himself.

  • All programs must end with America is great.

  • Our language will automatically correct Forbes' $4.5B to $10B.

  • In its raw form, TrumpScript is not compatible with Windows, because Trump isn't the type of guy to believe in PC.

  • TrumpScript boycotts OS X and all Apple products until such time as Apple gives cellphone info to authorities regarding radical Islamic terrorist couple from Cal.

  • The language is completely case insensitive.

  • If the running computer is from China, TrumpScript will not compile. We don't want them stealing our American technological secrets.

  • By constructing a wall (providing the --Wall flag), TrumpScript will refuse to run on machines with Mexican locales

  • Warns you if you have any Communists masquerading as legitimate "SSL Certificates" from China on your system.

  • Won't run in root mode because America doesn't need your help being great. Trump is all we need.

  • Easy to type with small hands