Path: utzoo!yunexus!ists!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.visual,comp.lang.misc Subject: Re: metaphor and programming Message-ID: <7038@ficc.uu.net> Date: 17 Nov 89 18:17:09 GMT Article-I.D.: ficc.7038 References: <13770@orstcs.CS.ORST.EDU> <7000@ficc.uu.net> <1989Nov17.040858.22886@rpi.edu> Reply-To: peter@ficc.uu.net (Peter da Silva) Organization: Xenix Support, FICC Lines: 58 [ I suggested that dataflow languages, like the UNIX pipes, are best adapted to visual languages ] > I am not so sure about this. Let's stay with the example of a Unix pipe > "program". This is always a one-dimensional flow of data. Unfortunately, it isn't. I frequently want to combine data in more complex ways, and are reduced to using temp files or makeshifts like !(shell | tee /dev/stdout 1>&2 | ... ) | something else! Here's a stripped down version of something recently posted to the net: > doc=/tmp/splchk.$$ > scr=/tmp/sedscr.$$ > cat $args > $doc > cat > $scr <
s/^/ / > s/\$/ / > HEAD > spell $spellflags < $doc | sed -e "\ > s/^/s;\\\\([ ][^a-zA-Z0-9]*\\\\)\\\\(/ > s/\$/\\\\)\\\\([^a-zA-Z0-9]*[ ]\\\\);\\\\1${T1}\\\\2${T2}\\\\3;g/ > s/ \$//" >> $scr > cat >> $scr <