// This function calculates applicable discounts given a customer's loyalty status// STOP BEFORE SEASON 8 DEXTER PLEASE funcalculateDiscountRate(loyalty: LoyaltyStatus): Set<Discount> {
// No seriously you can hide out at my place if you need to just please don't let them do it
...
Document your code like the guy who will be maintaining it is Dexter, and he knows where you live.
// This function calculates applicable discounts given a customer's loyalty status // STOP BEFORE SEASON 8 DEXTER PLEASE fun calculateDiscountRate(loyalty: LoyaltyStatus): Set<Discount> { // No seriously you can hide out at my place if you need to just please don't let them do it ...