home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!psinntp!sugar!markd
- From: markd@NeoSoft.com (Mark Diekhans)
- Subject: Proposed change to Tcl command parsing.
- Organization: NeoSoft Communications Services -- (713) 684-5900
- Date: Tue, 5 Jan 1993 07:53:19 GMT
- Message-ID: <C0DF8x.943@NeoSoft.com>
- Lines: 43
-
-
-
- I have been taking to John Ousterhout about a possible change to the way
- Tcl handled newlines in bracketed commands. In older versions of Tcl (pre-6.0)
- newlines within [] were not treated as command separators, just standard
- white-spaces (as with newlines within {}). This allowed complex multi-line
- bracketed commands without the use of backslashes.
-
- In Tcl 6.0 John change the parsing of commands within [] so that is
- consistent with parsing of commands outside of []. Initially I thought this
- consistency was a great idea, but after a lot of use, it seems to me that it
- makes Tcl harder to read due to having to use even more backslashes.
-
- John still feels that the consistency is overriding, so we thought we would
- put it out on the net for a discussion and a vote. If there is strong
- consensus one way or another, John will probably follow it.
-
- Discussion on the net, but send your votes to:
-
- markd@grizzly.com
-
- and I will post a summary and send it to John.
-
- To summarize:
-
- Arguments for treating newlines as whitespace within []:
-
- o Makes multi-line bracket commands more readable by eliminating
- backslashes.
-
- o The change will break very little code, as multiple commands are almost
- never used within [].
-
- o Is consistent with the behavior of "" and {} (but not commands
- within {}).
-
- Arguments for treating newlines as command separators within []:
-
- o Consistent with the treatment of newlines outside of []. Does not add
- a special quirk to Tcl, newlines always terminate commands.
-
- o Will break no code, as this is the way Tcl is currently behaving.
-
-