Multi-file application
Save as catalog.atom.
const shop = 'North Market'
func cents(quantity, unit_price):
return quantity * unit_price
export func receipt(user, quantity, unit_price = 250):
amount = cents(quantity, unit_price)
return '{shop}: {user} owes {amount} cents'
Save as shop.atom in the same directory and run atom run shop.atom -- Rowan.
use os
use './catalog.atom' as catalog
customer = get(os.args, 0, 'Guest')
print(catalog.receipt(customer, 3))