I'll need a bit of time to figure out and do some tests on this tricks. I still very kiddo on chuck, for instance i don't know what "<<" does.
Hi All,Henrique, I highly encourage you to take a deep look at Michael Heuer's LiCK library. There are some great things in there that take advantage of a functional paradigm in a generally functional-unfriendly language.
And while we're talking about functional style and other nerdery, I submit for your consideration my attempt to implement a Closure in Chuck to avoid overmuch global state. This should appeal to you JavaScript geeks out there as well. It's influenced by ideas in LiCK. And while it's a bit harder to read than your traditional Chuckian style, it's the most bang-for-buck (in terms of lines of code) I could get out of Chuck in a short session.Comments most welcome.Enjoy!-Mikehttp://michaelclemow.com
http://semiotech.org
On Wed, May 23, 2012 at 11:51 AM, Robert Poor <rdpoor@gmail.com> wrote:On Tue, May 22, 2012 at 3:19 PM, Michael Heuer <heuermh@gmail.com> wrote:
> You might be able to hack [eval] by writing to a temp file and Machine.add'ing it.
That is sooo deliciously nasty, and I don't see why it couldn't work.
I wish I'd thought of it.
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users