Hacker News new | ask | show | jobs
by ruricolist 1392 days ago
The CL convention would be to have a function called bar that converts whatever its argument into an instance of bar. Make it generic and new libraries can easily add their own conversions for their own data types.
1 comments

My personal convention is to call such a generic function ->bar to make it clear that what it does is coerce its argument to a different type.