Live data from Hacker News

Szl, a Tcl-inspired embeddable language

github.com

1–10 of 21 posts

Re: Szl, a Tcl-inspired embeddable language

#7
post #4

Earlier quoted context omitted.

Because everything is an object, including built-in functions

Then why the $, you already know that it's an object.

Nope. The first token in a statement is treated the same way as those that come after it. This way, you can do stuff like this (i.e. imagine a dictionary that maps HTTP methods to hander functions):

    >>> $local functions [$list.new $puts $sleep]
    puts sleep
    >>> [$list.index $functions 0] hello
    hello

Re: Szl, a Tcl-inspired embeddable language

#9
This 3-letter name is already taken [0], might be worth at least considering a different one.

It looks like this probably qualifies as a Show HN as well, if you can edit the title.

What are your future plans for the project? Are you using it regularly?

[0] https://github.com/google/szl

Re: Szl, a Tcl-inspired embeddable language

#10
post #2

The language manual: http://dimakrasner.com/szl

The writing in here looks pretty clean. My one suggestion would be to get some more examples in there. Most of the descriptions are one line and as a total outsider I just wanted to see some in action.

This document is much more appealing to me than the project's README. Since people often browse just the README when visiting a repository on GitHub, I wonder if you would be better off getting some of the language from sections 1 and 2 into the top of your README. The current README Overview just didn't do it for me. As soon as I saw the first two sections of the user manual, I was more interested because it showed what problem you were solving and how.

> Warning - This manual may reflect a future state of szl.

Got a chuckle out of me.

Post reply on HN