Re: Do all programming languages use files?
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 17:20:22 +0000 (UTC)
Ed Prochak said:
>
> 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.
>>
>
> Iteration is not necessarily common to ALL languages.
I'd be amazed to hear of a /programming/ language that doesn't support
iteration in some form or another.
> Obviously iteration can be done in a language with just Sequence,
> selection, and GOTO.
Right.
top:
INC x
FOO x
CMP x, y
JNE top
> And there is the less obvious language with Sequence, selection, and
> functions (as long as recursion is allowed, iteration can be
> implemented via recursion).
Then the language has a rather strange form of iteration. It might be a
nuisance to do, but it's still iteration.
> and How about languages with only sequence and selection (The loops are
> implied in nonprocedural languages like SQL.)
I don't really think of SQL as a programming language. It's more of a fairly
portable database API.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29 July 1999
http://www.cpax.org.uk
Email rjh at the above domain
.
- Follow-Ups:
- Re: Do all programming languages use files?
- From: Chris Sonnack
- Re: Do all programming languages use files?
- References:
- Do all programming languages use files?
- From: Past
- Re: Do all programming languages use files?
- From: gswork
- Re: Do all programming languages use files?
- From: Richard Heathfield
- Re: Do all programming languages use files?
- From: Ed Prochak
- Do all programming languages use files?
- Prev by Date: Re: Do all programming languages use files?
- Next by Date: Re: Relationship between software integration and interoperation?
- Previous by thread: Re: Do all programming languages use files?
- Next by thread: Re: Do all programming languages use files?
- Index(es):
Relevant Pages
|