摘要: 练习3-45原文Exercise 3.45. Louis Reasoner thinks our bank-account system is unnecessarily complex and error-prone now that deposits and withdrawa... 阅读全文
posted @ 2015-03-26 20:02 nomasp 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 练习3-44原文Exercise 3.44. Consider the problem of transferring an amount from one account to another. Ben Bitdiddle claims that this can be acco... 阅读全文
posted @ 2015-03-26 19:59 nomasp 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 练习3-42原文Exercise 3.42. Ben Bitdiddle suggests that it’s a waste of time to create a new serialized procedure in response to every withdraw an... 阅读全文
posted @ 2015-03-26 19:43 nomasp 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 练习3-41原文Exercise 3.41. Ben Bitdiddle worries that it would be better to implement the bank account as follows (where the commented line has b... 阅读全文
posted @ 2015-03-26 19:32 nomasp 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 改名的过程也是革新的过程。大到”苹果电脑公司“被改名为”苹果公司”,小到大学的校名更迭。甚至个人网名的更换也能印证其成长的岁月。联想收购ThinkPad和摩托罗拉之后都留了原名让粉丝们得到了些许安慰,不过我认为联想的ThinkPad远不如IBM的。至今依旧怀恋我的T30的键盘手感。今... 阅读全文
posted @ 2015-03-26 17:29 nomasp 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 练习3-38原文Exercise 3.38. Suppose that Peter, Paul, and Mary share a joint bank account that initially contains 100. Concurrently, Peter deposi... 阅读全文
posted @ 2015-03-26 14:35 nomasp 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1-3月已读完书籍: 《环球科学》2014年12月号 《环球科学》2014年11月号 《环球科学》2015年2月号 《硅谷百年史——伟大的科技创新与创业历程(1900-2013)》 《了不起的盖茨比》 《古诗十九首》 《科学松鼠会》2014年4月 《码农增刊Linus与Linux》 ... 阅读全文
posted @ 2015-03-26 13:23 nomasp 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 练习3-33原文Exercise 3.33. Using primitive multiplier, adder, and constant constraints, define a procedure averager that takes three connectors a... 阅读全文
posted @ 2015-03-26 12:50 nomasp 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 练习3-28原文Exercise 3.28. Define an or-gate as a primitive function box. Your or-gate constructor should be similar to and-gate. 代码(define (or-g... 阅读全文
posted @ 2015-03-26 12:46 nomasp 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 练习3-24原文Exercise 3.24. In the table implementations above, the keys are tested for equality using equal? (called by assoc). This is not alway... 阅读全文
posted @ 2015-03-26 12:40 nomasp 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 练习3-23原文Exercise 3.23. A deque (“double-ended queue”) is a sequence in which items can be inserted and deleted at either the front or the rea... 阅读全文
posted @ 2015-03-26 11:57 nomasp 阅读(214) 评论(0) 推荐(0) 编辑