home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / prolog / 2422 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.7 KB

  1. Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!latcs1!latcs1.lat.OZ.AU!jacob
  2. Newsgroups: comp.lang.prolog
  3. Subject: Re: Prolog is declarative
  4. Message-ID: <1993Jan22.023622.23284@latcs1.lat.oz.au>
  5. From: jacob@latcs1.lat.OZ.AU (Jacob L. Cybulski)
  6. Date: Fri, 22 Jan 1993 02:36:22 GMT
  7. Sender: news@latcs1.lat.oz.au (news)
  8. References: <90458@ncratl.AtlantaGA.NCR.COM>
  9. Organization: Comp Sci, La Trobe Uni, Australia
  10. Nntp-Posting-Host: latcs1.lat.oz.au
  11. Lines: 26
  12.  
  13. In article <90458@ncratl.AtlantaGA.NCR.COM>, hroth@ncratl.AtlantaGA.NCR.COM (Harris Roth) writes:
  14. |> What is the definition of declarative?
  15. A declarative language provides a descriptive rather than prescriptive
  16. solution to the problem. So for instance if you have to sort an array
  17. of numbers, you'd specify the initial state of the array (any order),
  18. the final state of the array (in order) and the relation between these
  19. two states (the two sets of numbers are to be identical). Depending on
  20. how you are going to set the relationship between the two states you may
  21. imply the use of bubble sort, a quick sort, etc...
  22.  
  23. |> What other languages are declarative?
  24. E.g. SQL, SNOBOL
  25.  
  26. |> What term describes languages which are not declarative?
  27. Procedural - e.g. Cobol
  28. Functional - e.g. Lisp
  29.  
  30.  
  31. Jacob
  32. -- 
  33. =============================================================================
  34. Jacob L. Cybulski,  Deputy  Director,  Amdahl  Australian  Intelligent  Tools
  35. Programme,  Dept of  Comp Sci  &  Comp Eng,  La Trobe  University,  Bundoora,
  36. Vic. 3083, Australia. Ph: +613 479 1270, Fax: +613 470 4915, Telex: AA 33143,
  37. E-Mail: jacob@latcs1.lat.oz.au.                                     ... G'Day
  38. =============================================================================
  39.