Programming languages enthusiast. Author of Learn Type Driven Development: https://www.packtpub.com/application-development/learn-type-driven-development
These are, somewhat, the forbidden fruits of Reason :-) Anyway, this is a good 'tricks of the trade' guide to the working practitioner. The only things I would add, are that the React string identity trick is exactly how the actual React.string function is defined, and that Obj.magic is basically a name given to the %identity trick itself. So e.g. you could do
These are, somewhat, the forbidden fruits of Reason :-) Anyway, this is a good 'tricks of the trade' guide to the working practitioner. The only things I would add, are that the React
string
identity trick is exactly how the actualReact.string
function is defined, and thatObj.magic
is basically a name given to the%identity
trick itself. So e.g. you could doAnd you'd get
var test = {};
Thank you for your input, I really appreciate it.
I updated the post.