Friday, October 05, 2018

Proposal: This is an Error [Cleanup]

Passes 6-0. Enacted by Brendan.

Adminned at 07 Oct 2018 18:26:05 UTC

Add to the end of the MCP:

function checkIsNot(variable,value,errorMessage){
if(variable == value){
printLine(errorMessage);
return false;
}
return true;
}
function inputIsValid(){
return
checkIsNot(GNDT,`__GNDT`,"Illegal execution? A GNDT dump must be provided.") &&
checkIsNot(randomSeed,"__RANDOM", "Illegal execution! a random value must be provided!");
}

change:

if (GNDT == “__” + “GNDT”) {
printLine("Illegal execution? A GNDT dump must be provided.");
} else {

to:

if(inputIsValid()){

 

Ok, this may be ambitious for a cleanup, but it only rearranges functionality and adds a small convenience functionality (error on replacement of "__RANDOM") that does not actually effect the result of attempting to run a program.

Comments

Kevan: he/him

05-10-2018 18:48:49 UTC

for

Brendan: he/him

05-10-2018 19:17:32 UTC

for It’s interesting to see this nomic drift even further into “pull requests and code review: the game.”

Lulu: she/her

06-10-2018 02:58:31 UTC

for so github: the game

Trigon:

06-10-2018 18:34:50 UTC

for

card:

06-10-2018 23:12:28 UTC

for