logoalt Hacker News

boffinAudiolast Monday at 1:02 PM0 repliesview on HN

Very cute language ..

     match x {
        is table {
            print(indent_this + "{")
            for pair in pairs(x) {
                write(indent + "   " + to_string(pair.key) + ": ") 
                pretty_print_internal(pair.value, indent + "   ", false)
            }
            print(indent + "}")
        }
.. okay, you got my attention (long-time Lua fan) .. will have to give this some workbench time and learn it ..