C = theNextIntegerThatComesAfterAnotherIntegerWithTheValueOf(C)
C = theNextIntegerThatComesAfterAnotherIntegerWithTheValueOf(C) is a C-like programming language created by user:CatCatDeluxe be very hard and annoying to read and write. It has the same language features as C++, but everything has an obnoxiously long and inefficient name. it can theoretically do anything C++ can, except be actually good.
Syntax
C = theNextIntegerThatComesAfterAnotherIntegerWithTheValueOf(C) has a similar syntax to C++, but much more annoying. The standard library, instead of being accessed by "std::", is accessed by "theStandardLibrary::".
C = theNextIntegerThatComesAfterAnotherIntegerWithTheValueOf(C) does not have comments, because names for things should tell you enough about them to not need comments.
Declaring variables
integers
numberThatCanBeFullyRepresentedWithoutTheNeedForADecimalPointAndCanBePositiveOrNegative num = -20;
unsigned integers
numberThatCanBeFullyRepresentedWithoutTheNeedForADecimalPointAndCanOnlyBePositiveOrZero num = 123;
floats
numberThatHasPrecisionPastThatOfAnIntegerButSometimesInnacuratelyRepresentsDecimalsDueToTheFactThatItIsStoredInBinary num = 12.625363;
double-precision floats
numberThatHasPrecisionPastThatOfAnIntegerAndANumberThatHasPrecisionPastThatOfAnIntegerButSometimesInnacuratelyRepresentsDecimalsDueToTheFactThatItIsStoredInBinary num = 2.541438756982112457;
booleans
valueThatCanBeEitherTrueOrFalse bool = true;
pointers
numberThatCanBeFullyRepresentedWithoutTheNeedForADecimalPointAndCanBePositiveOrNegative* ptr = theMemoryAddressOf num;
so now that you know how do declare variables, let's move on to functions.
Functions
Declaring a function is like in C++, where you specify a data type for the return value and also for its parameters.
A function that adds two to variable:
typePrefixThatIndicatesThatAFunctionDoesNotReturnAValue addTwoToAnInteger (referenceToA numberThatCanBeFullyRepresentedWithoutTheNeedForADecimalPointAndCanBePositiveOrNegative num) {
num = theStandardLibrary::getTheResultOfWhatHappensWhenYouAddTheseTwoIntegersTogether(num, 2);
}
I can't think of any more ideas for functions right now
Classes
Create a simple class that has a function to instantly kill the user by exploding their computer and burning their house down.
userDefinedDataTypeThatCanBeInstancedAndHasItsOwnIndividualVariables verySafeClassThatDoesNotHaveAFunctionToKillTheUserByExplodingTheirComputerAndBurnTheirHouseDown
{
VariablesAndMethodsThatCanBeDirectlyAccessedFromOutsideTheClass:
typePrefixThatIndicatesThatAFunctionDoesNotReturnAValue doAnythingExceptKillTheUserByExplodingTheirComputerAndBurnTheirHouseDown ()
{
theStandardLibrary::killTheUserByExplodingTheirComputerAndBurnTheirHouseDown();
}
}
I think that explains classes well enough. Edit some more examples in if you feel like it.
Examples
Program that prints all the integers from 1 to 100
numberThatCanBeFullyRepresentedWithoutTheNeedForADecimalPointAndCanBePositiveOrNegative main ()
{
numberThatCanBeFullyRepresentedWithoutTheNeedForADecimalPointAndCanBePositiveOrNegative i = 1;
repeatWhileTheFollowingContitionIsMet (theStandardLibrary::isTheFirstIntegerLessThanTheSecondOne(i, 101)) {
theStandardLibrary::printAStringToTheConsole(theStandardLibrary::convertAvalueToAsequenceOfCharactersCommonlyKnownAsAString(i));
theStandardLibrary::printAStringToTheConsole("\n");
i = theStandardLibrary::theNextIntegerThatComesAfterAnotherIntegerWithTheValueOf(i);
}
}
Cat Program
numberThatCanBeFullyRepresentedWithoutTheNeedForADecimalPointAndCanBePositiveOrNegative main ()
{
theStandardLibrary::sequenceOfCharactersCommonlyKnownAsAString input = "";
repeatWhileTheFollowingContitionIsMet (theStandardLibrary::theseTwoValuesThatAreCommonlyKnownAsStringsAreNotEqualToEachOther(input, "")) {
theStandardLibrary::standardInputFromTheConsole >> input;
theStandardLibrary::printAStringToTheConsole(input);
}
}
So, For now, that concludes this overview of the (maybe) very fast-to-run, excruciatingly-long-and-annoying-to-write programming langauge, C = theNextIntegerThatComesAfterAnotherIntegerWithTheValueOf(C).