home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!brad
- From: brad@NeoSoft.com (Brad Morrison)
- Subject: Re: Advice wanted on math functions for Tcl 7.0
- Organization: NeoSoft Communications Services -- (713) 684-5900
- Date: Tue, 22 Dec 1992 17:36:23 GMT
- Message-ID: <Bzo8wx.7qA@NeoSoft.com>
- References: <1h5pseINNkvu@agate.berkeley.edu> <1992Dec22.155047.2655@cimage.com>
- Lines: 21
-
- In article <1992Dec22.155047.2655@cimage.com> johng@cimage.com (John Gourlay) writes:
-
- >Extend the expr syntax to include sin and cos. Don't make them
- >separate functions. I think it would be confusing to have some math
- >functions (+, *, etc.) in expr and some outside of it. I'm swayed by
- >the more natural syntax within expr and by the efficiency of the
- >implementation.
-
- But (+, *, etc.) are operators, not functions. I am for defining the
- math functions as intrinsic Tcl functions. I will admit, the efficiency
- *is* tempting, but what about other math functions? Should expr just
- keep growing to accomodate them, too? This sort of approach, with an emphasis
- toward efficiency, with syntax changes and inconsistencies considered as
- secondary, reminds me a bit too much of Perl.
-
- I opt for the separate command approach. IMHO, it's cleaner, and it won't break
- any exisiting Extended Tcl code. :-)
- --
- Brad Morrison | ...These lovers of esoterica seem to derive a great
- morrison@paranet.com | deal of intellectual satisfaction out of not quite
- (713) 467-3100 | understanding what they are doing.
-