Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ruricolist
· 4y ago · 0 comments
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.
Comments
[–]
lisper
4y ago
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.