Hacker News new | ask | show | jobs
by doctor_eval 1223 days ago
Yes, this is exactly what I’ve done previously. For example, I implemented a sum() aggregate function that took “monetary” (currency + value) composite types and raised an exception if the currencies were not all the same.