ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-core
tcl-core
Re: [TCLCORE] TIP #266: Numbers are Commands
by Kristoffer Lawson other posts by this author
Apr 13 2006 2:18PM messages near this date
Re: [TCLCORE] TIP #266: Numbers are Commands | Re: [TCLCORE] TIP #266: Numbers are Commands
On 13 Apr 2006, at 18:43, Peter MacDonald wrote:

>  Another issue to document: collateral breakage:
> 
>    set x [.0 + 3]
>    ...
>    frame .0
>    ...
>    set x [.0 + 3]
> 
>  The first [set x] works, but not the second.    Maybe this suggests  
>  that the
>  syntax should require braces
> 
>    set x [(.0+3)]

But that breaks one of the core notions behind the TIP, which is that  
numbers are commands. That is why I am wary about solutions where the  
expressions can be made into commands themselves, such as

3+4 + 5

For me, it somewhat breaks the beauty in specification of this TIP,  
which spawns from the way every number would be a command. As  
mentioned, that does remind me of Smalltalk and some other OO  
languages and thus numbers are based on one important feature of the  
language, commands.

The .0 problem is a real one but, I believe, one which should be  
clearly stated in the manpage and that it should be made obvious why  
the correct form is [0.0 + 3].

            /  http://www.fishpool.com/~setok/



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Kristoffer Lawson
Arjen Markus
Peter MacDonald
Kristoffer Lawson
Peter MacDonald
Kristoffer Lawson
Peter MacDonald
Kristoffer Lawson
Arjen Markus
dgp
Arjen Markus
Brian Griffin
Peter MacDonald
Kristoffer Lawson
Gustaf Neumann
Donal K. Fellows
Donald G Porter
Neil Madden
David N. Welton
Arjen Markus
Kristoffer Lawson
Neil Madden
Kristoffer Lawson
Lars Hellström
Neil Madden
Kristoffer Lawson

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved