home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / lisp / 3336 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.5 KB  |  49 lines

  1. Newsgroups: comp.lang.lisp
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!agate!stanford.edu!rock!concert!sas!mozart.unx.sas.com!sasmsr
  3. From: sasmsr@zinfande.unx.sas.com (Mark S. Riggle)
  4. Subject: Re: Why Isn't Lisp a Mainstream Language?
  5. Originator: sasmsr@zinfande.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <C19snx.2IF@unx.sas.com>
  8. Date: Fri, 22 Jan 1993 19:26:20 GMT
  9. References: <1993Jan21.230642.18561@netlabs.com> <19930122162651.0.SWM@SUMMER.SCRC.Symbolics.COM>
  10. Nntp-Posting-Host: zinfande.unx.sas.com
  11. Organization: SAS Institute Inc. Cary NC
  12. Lines: 35
  13.  
  14.  
  15.  
  16. I think that one aspect of Lisp syntax that can be
  17. confusing to lisp novices is that the first
  18. position of a list is the functional call, EXCEPT
  19. in certain forms. Like the lambda argument list,
  20. 'let', 'do' and others, including some user defined
  21. macros.
  22.  
  23. ie. te consider the following fragments:
  24.  
  25.   (let
  26.     ((fred (x))
  27.      (sam  (y))))
  28.  
  29.   (letter
  30.     ((fred (x))
  31.      (sam  (y))))
  32.  
  33. So syntactically they look the same, but we all
  34. know they are semantically vastly different, except
  35. of course we have made a macro definition for
  36. letter that is the same as say let or let*.
  37.  
  38. I think it actually takes quite some exposure to
  39. Lisp before this semantic transformation is natural
  40. and automatic to someone.
  41.  
  42. -- 
  43. =============================================================
  44. Mark Riggle             [Professional Lisp Bigot]
  45. sasmsr@unx.sas.com                   
  46. SAS Institute Inc.,                  
  47. SAS Campus Drive, Cary, NC, 27513     
  48. (919) 677-8000                      
  49.