Watching someone learns basics of programming in Python, I realized that Python is actually not that easy to learn for beginners as I thought: 1. Types in Python are implicit. It's really hard to explain that they need to always think about what type something is, especially when they haven't grasped the concept of types yet. 2. Indentation as part of the language. I thought it's a great thing for beginners, but it's…
Tcl the Misunderstood (2006)
51–60 of 81 posts
Re: Tcl the Misunderstood (2006)
#52Some discussions over the last several months, including just yesterday: * The Birth of Tcl: https://news.ycombinator.com/item?id=31111220 * TclTutor 3: https://news.ycombinator.com/item?id=30327945 * Tcl/Tk Spline Editor: https://news.ycombinator.com/item?id=29772621 * Tcl library for CSP: https://news.ycombinator.com/item?id=29421786 * Why Tcl syntax is so weird: https://news.ycombinator.com/item?id=29143346 * Tcl:…
Yes. I've been kind of wondering about the apparent promotion of Tcl here recently - is someone pushing it for some reason, or is it just a passing fad in a slow (tech) news time?
Re: Tcl the Misunderstood (2006)
#53expr is horrible though. but i love tcl.
% interp alias {} = {} expr
=
% set x [= 2 + 3]
5
Also aliasing lindex to @ is nice % interp alias {} @ {} lindex
% set a {1 2 3}
1 2 3
% @ $a 1
2Re: Tcl the Misunderstood (2006)
#54Some discussions over the last several months, including just yesterday: * The Birth of Tcl: https://news.ycombinator.com/item?id=31111220 * TclTutor 3: https://news.ycombinator.com/item?id=30327945 * Tcl/Tk Spline Editor: https://news.ycombinator.com/item?id=29772621 * Tcl library for CSP: https://news.ycombinator.com/item?id=29421786 * Why Tcl syntax is so weird: https://news.ycombinator.com/item?id=29143346 * Tcl:…
Yes. I've been kind of wondering about the apparent promotion of Tcl here recently - is someone pushing it for some reason, or is it just a passing fad in a slow (tech) news time?
Re: Tcl the Misunderstood (2006)
#55Quoted post unavailable.
Re: Tcl the Misunderstood (2006)
#56Wow, looks like TCL is "the better bash"
Today zsh or fish is the better bash, really.
Here's another dead end unexplored though - dtksh! https://www.brendangregg.com/dtkshdemos.html
Re: Tcl the Misunderstood (2006)
#57Quoted post unavailable.
Re: Tcl the Misunderstood (2006)
#58Quoted post unavailable.
Re: Tcl the Misunderstood (2006)
#59Watching someone learns basics of programming in Python, I realized that Python is actually not that easy to learn for beginners as I thought: 1. Types in Python are implicit. It's really hard to explain that they need to always think about what type something is, especially when they haven't grasped the concept of types yet. 2. Indentation as part of the language. I thought it's a great thing for beginners, but it's…
The traditional answer was to use a BASIC dialect. Minimal syntax, minimal structure, simple imperative commands. A lot simpler than Pascal. I don’t know TCL very well, but its scope semantics may be confusing. I’d take a look at LOGO also.
Re: Tcl the Misunderstood (2006)
#60expr is horrible though. but i love tcl.
It's easy to alias expr to =, which enhances write- and readability : % interp alias {} = {} expr = % set x [= 2 + 3] 5 Also aliasing lindex to @ is nice % interp alias {} @ {} lindex % set a {1 2 3} 1 2 3 % @ $a 1 2
namespace path {::tcl::mathop ::tcl::mathfunc}
Then you get very LISP like math operators
% set x [+ 2 3 [- 5 20]]
-10
and math functions % set x [abs -12]
12