On Friday, September 7, 2018 at 3:01:23 AM UTC-5, Nigel Tao wrote:
>
> Building on Todd's example, you can add a little more type safety 
> (having the map value type be a "func etc" instead of "reflect.Value) 
> by Curry'ing the receiver: https://play.golang.org/p/n3sDpxfd2td 
>
> I've also split up the single run function into two: one binds strings 
> to functions, the second takes some strings (e.g. as args, but you 
> could imagine from a REPL) and calls the corresponding functions. 
> [...] 
>

Ah, good. What I have in my local repo is more or less on the right track, 
though less sophisticated than what is in your link. Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to