It’s also worth noting that you could simply write:
let s = subtotal
s.price + s.shipping
end
which only requires two more characters but avoids needing any metaprogramming at all. Sometimes the simplest solution is the best
It’s also worth noting that you could simply write:
let s = subtotal
s.price + s.shipping
end
which only requires two more characters but avoids needing any metaprogramming at all. Sometimes the simplest solution is the best