If your language of choice is a trivial variant of another (potentially more popular) language which already has an answer (think BASIC or SQL dialects, Unix shells or trivial Brainfuck derivatives like Headsecks or Unary), consider adding a note to the existing answer that the same or a very similar solution is also the shortest in the other language.
[ and ] don't have to be matched and are individual commands. [ remembers the current stack depth (sort of), and ] wraps everything beyond the last remembered stack depth in an array.
("sort of", because that remembered value is lowered when the stack falls below it, so if you do 5[;5], the 5 will be in the array. more importantly, some commands are actually implemented via popping the argument, so for instance [\] lowers the stack depth by two so it wraps the top two stack elements in an array in reverse order) (@quartata)
I have noticed that there are a disproportionate number of computer languages based on English. I propose to fix this by translating existing computer languages into foreign languages!
Pick a computer language that uses English keywords/functions
Pick any natural* language other than English
Wr...
is there a policy (either on this site or SE in general) about profanity in answers? i know no one cares here but a long time ago someone edited a swear word out of one of my answers and reverted my attempt to put it back and i got unnecessarily mad and actually left the site for a couple days. i'm over it now but i want to quote part of the code from my pb interpreter in an answer i'm writing, which includes "# TODO: make this not a piece of shit" and i don't know if that's okay
it's not necessary to have the quote there to make my point, i'm basically making fun of myself for writing a bad interpreter
Can I use salty, expletive-laden language on Stack Exchange sites, like Q*Bert?
For more information, see "What kind of behavior is expected of users?" in the Help Center.
Return to FAQ index
thanks, but there are a lot of conflicting, highly upvoted answers, and i'd normally default to the top voted one but it's kind of wishy-washy and i don't know where the line is supposed to be drawn
legit though, thank you, i didn't know that was a thing
i don't know if this is how they did it but if i was writing censor code for a network like SE where 90% of the users are programmers, i'd whitelist brainfuck
@quartata i understand why community wiki posts don't have an avatar but i really feel like this is a case where it would have been helpful to notice who posted it :P