Re: Do all programming languages use files?




Richard Heathfield wrote:
> gswork@xxxxxxxxxxxx said:
>
> > it may be more interesting to ask if there is anything that *all
> > programming languages* have in common*
>
> My three cents: Sequence, selection, and iteration.
>
> --
> Richard Heathfield
> "Usenet is a strange place" - dmr 29 July 1999
> http://www.cpax.org.uk
> Email rjh at the above domain

Iteration is not necessarily common to ALL languages.


Obviously iteration can be done in a language with just Sequence,
selection, and GOTO. (consider a language like BASIC but without the
FOR loop)

And there is the less obvious language with Sequence, selection, and
functions (as long as recursion is allowed, iteration can be
implemented via recursion).

and How about languages with only sequence and selection (The loops are
implied in nonprocedural languages like SQL.)


So even finding common ground among programming languages may be very
tough.

ed

.



Relevant Pages

  • Re: Do all programming languages use files?
    ... >> My three cents: Sequence, selection, and iteration. ... > Iteration is not necessarily common to ALL languages. ... I'd be amazed to hear of a /programming/ language that doesn't support ... > Obviously iteration can be done in a language with just Sequence, ...
    (comp.programming)
  • Re: Strategy or Iterator?
    ... between telling some object (internal iteration): ... the next element in the sequence. ... languages). ... Counter to that, if you use external iteration, then you may have to introduce ...
    (comp.lang.java.programmer)
  • Re: dp
    ... Three elements of structured programming are sequence, selection, and ... iteration. ... Sequence may seem trivial, but it's harder to get right than ...
    (comp.lang.c)
  • Re: need urgent help
    ... That would be sequence, selection, iteration *and* obfuscation. ...
    (comp.lang.java.programmer)
  • Re: A taxonomy of types
    ... Before a representation is practical I think we need a taxonomy (so we ... dynamic typing or type inference and most languages have rules ... Target domain of reference ... Sequence of component types and names ...
    (comp.lang.misc)