ArnoldC – A programming language based on Arnold Schwarzenegger one-liners
github.com
github.com
throwing an exception: YOU KILLED MY FATHER BIG MISTAKE
catching an exception: COME WITH ME IF YOU WANT TO LIVE
finally: REMEMBER SULLY WHEN I PROMISED TO KILL YOU LAST
null value: @YOUVE JUST BEEN ERASED or @HASTA LA VISTA BABY or @I LET HIM GO
positive infinity value: @YOURE FIRED
negative infinity value: @WHAT KILLED THE DINOSAURS THE ICE AGE
NaN value: @IM PREGNANT
Examples of usage here: https://www.solidangle.com/
WHO IS YOUR DADDY AND WHAT DOES HE DO (foo){
SEE YOU AT THE PARTY 'bar':
//kill bad guys
I AM THE PARTY POOPER;
}And the default case could be nominated by GET IN AND START PADDLING
YOU'RE ONE UGLY MOTHERFUCKER - User input
IF IT BLEEDS WE CAN KILL IT - Throw exception
CRUSH YOUR ENEMIES - Handle exception
>IF IT BLEEDS WE CAN KILL IT
I think that would do better as a switch or case handler semantic.I urge the author of the language to create ArnoldCSpec, so that other implementations can be given the opportunity to challenge the main one. :-D
FUCK YOU ASSHOLE - Equivalent of Perl die()?
Other suggestions for future expansion:
COME WITH ME IF YOU WANT TO LIVE
TRUST ME (An assert()?)
I NEED A VACATION