I am always kind of surprised when I go to a landing page for a language and there isn't any actual code. This is one of my biggest complaints about the rust language page, it feels crazy to me that there's no code and I think this is just a ridiculous choice (and I know this has been brought up before).
The old page had a built-in sandbox. Go used to have a more "Front and center" sandbox too but at least it's there if you scroll down https://go.dev/
One time, this annoyed me so much that I made a website.
https://anaminus.github.io/langding/
om would fall under "Yes, must scroll".
There is code. Small examples start halfway down the page, and there's one 20-line example. Not much, but it's not accurate to say there's none.
It would be helpful to see any kind of motivation for the project though. Anything at all.
There is code, search for 'examples'.
It concludes by implementing a fold:
define
{
[Fold]<- {
rearrange
{
rearrange
{
dequote
choose
quote Result
pair pair pair {[Fold]<-} Function Result Remainder
Remainder
}
{Result Remainder}
dequote Function Base <-[terms] Source
}
{Function Base Source}
}
}
{
[Fold]<- {[literal]<-} {} {1 2 3}
}
> I am always kind of surprised when I go to a landing page for a language and there isn't any actual code.
So, you're not surprised that this Om page has an extensive section called "Examples", right? https://www.om-language.com/#language__examples__