From 15c837b9eb975f12c951ae25564955329389b7ae Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Fri, 13 Oct 2023 21:58:48 -0400 Subject: [PATCH] xs is actually right-to-left --- commentary/ltr.md | 3 +-- docs/commentary/ltr.html | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/commentary/ltr.md b/commentary/ltr.md index d4574fd1..f72aa679 100644 --- a/commentary/ltr.md +++ b/commentary/ltr.md @@ -13,11 +13,10 @@ I've thought about adding some sort of pipe notation (the `$` character is open) As for programming precedent, stack-based languages such as Forth go from left to right. In Java-style object-oriented programming, methods go from left to right. This style of "method chaining" is particularly prevalent in Javascript. - There's an [APL Wiki category](https://aplwiki.com/wiki/Category:Left_to_right) that gathers some left-to-right languages. [Jelly](https://github.com/DennisMitchell/jellylanguage) is likely the most widely used of these, but being a code golfing language it's explicitly designed for brevity first and usability second. -- [xs](https://github.com/smabie/xs) is a concatenative (or stack-based) array language not yet on APL Wiki. - Milan Lajtoš is working on the Fluent language for his "new kind of paper". Its LtR nature is mentioned in [this post](https://mlajtos.mu/posts/new-kind-of-paper-2). - Adám Brudzewsky and others did some investigation into LtR APL specifically in the [LPA/NQB thread](https://topanswers.xyz/apl?q=1660). -Contrarily, the BQN-inspired language Uiua is stack-based but evaluates RtL, a decision [defended here](https://www.uiua.org/rtl). +Contrarily, the BQN-inspired language Uiua is stack-based but evaluates RtL, a decision [defended here](https://www.uiua.org/rtl). [xs](https://aplwiki.com/wiki/Xs) takes this approach as well. ## General considerations diff --git a/docs/commentary/ltr.html b/docs/commentary/ltr.html index 97e78c10..75b7ee2b 100644 --- a/docs/commentary/ltr.html +++ b/docs/commentary/ltr.html @@ -12,11 +12,10 @@

Other attempts<

As for programming precedent, stack-based languages such as Forth go from left to right. In Java-style object-oriented programming, methods go from left to right. This style of "method chaining" is particularly prevalent in Javascript.

-

Contrarily, the BQN-inspired language Uiua is stack-based but evaluates RtL, a decision defended here.

+

Contrarily, the BQN-inspired language Uiua is stack-based but evaluates RtL, a decision defended here. xs takes this approach as well.

General considerations

English text is read left to right. This in itself is not decisive in either direction: many contend that the way to read a function is first to read the function, then its argument. Although I usually read the other way, I do find that order to be useful sometimes.