Hacker News new | past | comments | ask | show | jobs | submit login

You could use eval to expand whatever syntax you like into function calls. It could be done once at the start of the program and act like a js preprocessor.

I know eval is not kosher but this problem is also not real, so why not.




That's an interesting idea as well, could definitely see that working in some use cases.




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

Search: