3 ms·
Hmm, we took a different approach, here's my C-like dialect (built on Tcl's byte codes so it co-exists with Tcl code. And yes, I know, but we needed Tk so were
by luckydude 9y ago
Hmm, we took a different approach, here's my C-like dialect (built on Tcl's byte codes so it co-exists with Tcl code. And yes, I know, but we needed Tk so were stuck with Tcl).
http://little-lang.org http://little-lang.org
Stuff that I'd like to C in an evolved C:
regexp engine as part of the language so you can do
while (buf = <>) if (buf =~ /some regexp/) puts(buf);
<> and <FD> from perl, just handy.
Lists as a built in, with any element type and builtins like push, pop, shift, unshift, etc. Again, more perl goodness without all the @'s and $'s.
${expr} interpolation inside strings. Like shell, and it's handy.
At this point I'm just typing in the L language docs, so most of the stuff here:
http://www.little-lang.org/little.html http://www.little-lang.org/little.html
BTW - the logo for the language is a tip of the hat to the things that inspired it: the Tcl feather logo, the Perl camel logo, and "C" all bunched together. I'm very fond of that logo but not sure that anyone but me gets it.