News for hackers. Stuff that matters.
Re:Generalizing JSX: Delivering on the Dream of Curried Name... by kbenson on Thursday March 24, 2016 @05:44PM (#11356710)
Couldn't you get around using eval by just use an object and register methods on it, instead of global functions, essentially using the object as a namespace? Instead of

    /* @jsx ((a,b)=>(eval(a)(b))) */
You would have

    /* @jsx ((a,b)=>(MyJSX[a](b))) */
And then just build your functions on top of the MyJSX object?
Re:Generalizing JSX: Delivering on the Dream of Curried Name... by WorldMaker on Thursday March 24, 2016 @06:14PM (#11356912)
Yep, that's essentially where I was leading.
Re:Generalizing JSX: Delivering on the Dream of Curried Name... by kbenson on Thursday March 24, 2016 @06:20PM (#11356945)
Ah, I actually missed that last part of your original comment, or I wouldn't have felt the need to comment myself. So much for reading comprehension on my part. ;)