Thanks for the references! I'll have a read over the weekend.
The problem with textual data-flow programming languages is that I haven't seen any that aren't ugly beyond repair.
The problem with textual data-flow programming languages is that I haven't seen any that aren't ugly beyond repair.
SISAL isn't all that bad, ignoring the 80's syntax:
function BottlesOfBeer(i : integer returns array[string])
let
s,bottles,preface,n,nextbottles :=
if i = 1 then
"1"," bottle","If that bottle","No more"," bottles"
elseif i = 2 then
itoa(2)," bottles","If one of those bottles",itoa(1)," bottle"
else
itoa(i)," bottles","If one of those bottles",itoa(i-1)," bottles"
end if;
in
array[1:
s || bottles || " of beer on the wall",
s || bottles || " of beer!",
preface || " should happen to fall... ",
n || nextbottles || " of beer on the wall!",
""
]
end let
end function(Jon Riecke <http://scholar.google.com/citations?user=lSdHdpUAAAAJ&hl...; did most of the work on the language.)
P.S.: I was fascinated after reading Peter van Roys book some time ago and still wonder about this a bit disappointed.