[MUD-Dev] Properties of computer languages

Travis S. Casey efindel at io.com
Thu Jun 17 11:20:22 CEST 1999


On Wed, 16 Jun 1999, Caliban Tiresias Darklock wrote:

> I'm in the process of redesigning the macro language of my game, and I
> recall seeing at one time a list... a very short list... of things that a
> computer language absolutely required. Sort of a bare-bones "what you need
> to do everything you need to do in any given program". Two of the things on
> the list were conditionals (if/then/else) and iteration (for/next and
> do/while). There were either two or three other things listed, but I don't
> remember what they were. Does anyone here have a memory spark going off as
> to what list I'm talking about and where I can find it? I think one of the
> other things was something along the lines of subroutine/function declaration.

For a practical minimum, I suggest:

 - conditionals
 - indefinite iteration, with a way to jump out of the loop when necessary
 - variables (numeric and string)
 - assignment
 - mathematical operators
 - basic string operators
 - input
 - output

Things that are very nice to have:

 - functions
 - recursion
 - multiple iterators
 - "else" on if-then
 - switch statements

Of course, for a special-purpose language, you may not need some things --
e.g., some programs don't need strings.

--
       |\      _,,,---,,_        Travis S. Casey  <efindel at io.com>
 ZZzz  /,`.-'`'    -.  ;-;;,_   No one agrees with me.  Not even me.
      |,4-  ) )-,_..;\ (  `'-'
     '---''(_/--'  `-'\_) 




_______________________________________________
MUD-Dev maillist  -  MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev




More information about the mud-dev-archive mailing list