a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment
rob05c  ·  3443 days ago  ·  link  ·    ·  parent  ·  post: Dynamically Declaring Functions and Methods

It can. Any homoiconic language can. Or in other words, any language with 'eval.' Ruby, Python, Javascript, Lua, Bash—almost every scripting language. But you should be very, very careful with eval ('loadstring' in Lua). Evaluating arbitrary text as code is a huge attack vector. That's why I recommended embedding a scripting language, where you can easily lock it down.