Re:Is eval evil? Just-in-time compiling
by goto11 on Monday November 19, 2018 @01:35PM
(#18488557)
Sure but will you get any benefit to offset the cost? Eval is typically used for dynamically generated code, otherwise why use eval in the first place? Evaling a hardcoded string constant seem completely useless to me so what would be the purpose of optimizing for that use case?
[ Parent
| on HN ]
Re:Is eval evil? Just-in-time compiling
by pizlonator on Monday November 19, 2018 @02:15PM
(#18488867)
I’ve definitely written uses of eval that have a large amount of stuff that doesn’t change. Pretty sure it’s common.