News for hackers. Stuff that matters.
Re:Common Lisp Wiki: Naming Conventions by ruricolist on Sunday August 28, 2022 @12:51PM (#32629855)
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.
Re:Common Lisp Wiki: Naming Conventions by lisper on Sunday August 28, 2022 @01:22PM (#32630095)
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.