We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Very logical esolang
Very logical esolang is a very logical esoteric programming language made by User:Dragoneater67 in 2026. It got its name because its purpose is to be very logical.
Semtantics
The language is based on combinatory logic since its author (User:Dragoneater67) is very familiar with it, and being familiar with it would ease the development the language, it is also related to the theme of being very logical, it uses the {C, G, I, L, O} basis, because the names of the combinators happen to spell out the word LOGIC, which fits the theme, and also because the basis is aristocratic as it can derive the combinators B, T, M and I:
Bxyz=C(G(CC)(GI))xyz=G(CC)(GI)yxz=CCx(GIy)z=C(GIy)xz=GIyzx=Ix(yz)=x(yz) Txy=CIxy=Iyx=yx Mx=LIx=I(xx)=xx or Mx=OIx=x(Ix)=xx Ix=Ix=x
The execution goes like this:
- If possible, beta reduce the leftmost expression, else, halt.
- Go back to step 1.
This is done because special I/O combinators may cause side effects that depend on evaluation order.
Syntax
2 syntaxes are available:
- CC syntax with uppercase combinator names and parentheses for disambiguation
- Unlambda syntax with lowercase combinator names and
`for application
Advantages and disadvantages of these syntaxes are mostly irrelevant to logic, and using neither does not make sense as every language needs syntax, which only leaves the option of using both of them.
I/O
Similarly to syntax, there are 2 ways to do I/O:
- Special combinators:
1-- Identity combinator, but has the side effect of outputting 1.0-- Identity combinator, but has the side effect of outputting 0.?-- Takes 2 arguments, inputs a bit, if it is 1, returns the first argument, else, returns the second argument.
- Lazy K-style IO
Special combinators use binary I/O since character I/O would use church numerals for input, and special combinators for output, which would be inconsistent, and inconsistency is illogical. Implementations should allow the user to choose between either way.
Examples
Infinite loop
CC syntax
LI(LI)
Unlambda syntax
``li`li
Truth machine
CC syntax
?(LO(LO)1)0
Unlambda syntax
``?```lo`lo10