Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Go is one of the last languages I'd think about when considering access to the AST. The first would be Lisp.


there are tons of utilities. and the fact that i've written some means it's pretty easy


Right, I'm not saying it's impossible in Go, but it's so easy in Lisp you're bound to do it even by accident. There are no "AST utilities" in Lisp because the AST is just a normal list / tree of primitive values (of the `symbol` type). You operate on code structures with the same libraries that you operate on a list / tree of numbers, strings, etc. Code is data.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: