Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Python syntax in Lisp and Scheme
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Ken Shan, post: 1733189"] I'm not sure if I understand your notion of problem-domain levels. For instance, in a preceding example amount_due = sum(item_prices) * (1 + tax_rate) is the problem domain possibly "functions and their arguments", or is the problem domain possibly "customer billing"? If the former, would you rewrite the above expression with names in the problem domain, as in amount_due = apply(*, apply(sum, item_prices), apply(+, 1, tax_rate) or amount_due = apply(apply, *, apply(apply, sum, item_prices), apply(apply, +, 1, tax_rate)) or amount_due = apply(apply, apply, *, apply(apply, apply, sum, item_prices), apply(apply, apply, +, 1, tax_rate)) (when do I stop?)? If the latter, how would you recommend that I (re)write the code... certainly, since the use of function application is so pervasive in the above code, a human-readable name in the problem domain is in order? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Python syntax in Lisp and Scheme
Top