In every programming language I've ever heard of, program control flows left→right and then top→bottom. That is, this psudo code:

{ print "1" } { print "a" }
{ print "2" } { print "b" }
{ print "3" } { print "c" }

would print 1a2b3c

Are there any languages (even eso-langs/DSLs) that invert that order, so that the above would print 123abc?

It occurs to me that a left-to-right control flow would be a good fit for a lot of "pipeline" type data work, and I'm curious if anyone has tried it

@codesections
There's one eso language that is all about paths in an ascii grid, but I don't remember the name

@codesections
As for the pipeline model, that's arguably how a lot of functional languages are written (f . g . h(x))

Follow

@pettter

> As for the pipeline model, that's arguably how a lot of functional languages are written (f . g . h(x))

Yeah, that's the sort of thing I was thinking of. Because that model loses some of it's left-to-right flow as the function names grow beyond one letter.

You end up with something like

some_list.map(|a_mapper|)
.filter(|filter_fn|)
.sort(|sort_fn|)

Which is still ok – good, even! – but not as left-to-right anymore

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.