home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / tcl / 2293 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.9 KB  |  53 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!psinntp!sugar!markd
  3. From: markd@NeoSoft.com (Mark Diekhans)
  4. Subject: Proposed change to Tcl command parsing.
  5. Organization: NeoSoft Communications Services -- (713) 684-5900
  6. Date: Tue, 5 Jan 1993 07:53:19 GMT
  7. Message-ID: <C0DF8x.943@NeoSoft.com>
  8. Lines: 43
  9.  
  10.  
  11.  
  12.     I have been taking to John Ousterhout about a possible change to the way
  13. Tcl handled newlines in bracketed commands.  In older versions of Tcl (pre-6.0)
  14. newlines within [] were not treated as command separators, just standard
  15. white-spaces (as with newlines within {}).  This allowed complex multi-line
  16. bracketed commands without the use of backslashes.
  17.  
  18.     In Tcl 6.0 John change the parsing of commands within [] so that is
  19. consistent with parsing of commands outside of [].  Initially I thought this
  20. consistency was a great idea, but after a lot of use, it seems to me that it
  21. makes Tcl harder to read due to having to use even more backslashes.
  22.  
  23.    John still feels that the consistency is overriding, so we thought we would
  24. put it out on the net for a discussion and a vote.  If there is strong
  25. consensus one way or another, John will probably follow it.
  26.  
  27. Discussion on the net, but send your votes to:
  28.  
  29.    markd@grizzly.com
  30.  
  31. and I will post a summary and send it to John.
  32.  
  33. To summarize:
  34.  
  35.     Arguments for treating newlines as whitespace within []:
  36.  
  37.       o Makes multi-line bracket commands more readable by eliminating
  38.         backslashes.
  39.  
  40.       o The change will break very little code, as multiple commands are almost
  41.         never used within [].
  42.  
  43.       o Is consistent with the behavior of "" and {} (but not commands
  44.         within {}).
  45.  
  46.     Arguments for treating newlines as command separators within []:
  47.  
  48.       o Consistent with the treatment of newlines outside of [].  Does not add
  49.         a special quirk to Tcl, newlines always terminate commands.
  50.  
  51.       o Will break no code, as this is the way Tcl is currently behaving.
  52.  
  53.