Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Okay, so make the lambda's binding refer to several of those 'structs' and have .( dispatch to the correct one based on the airity at the call site.


That will introduce unnecessary overhead in the basic case. At some level you do want to access the "low level" function (interfacing with Erlang, e.g.) if you really want that sort of dispatch you can write your own polyfunction data type.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: