梅森的模式正在改变遭遇销售障碍的公司,尤其是市场预算有限的小公司的处理方式。
Mason's model is transforming the way companies — especially smaller ones with limited marketing budgets — snag sales.
本例中的模式是当第一个事务读取某个数据行时,它将加上时间戳和用户标识,这类似于悲观会话锁定的处理方式(稍后讨论)。
The pattern in this case is that when the first transaction reads a row it will "stamp" it with the identity of the user, similarly to how pessimistic session locking is handled (covered next).
例如,可以为同一函数定义多种处理方式,还可以对递归调用应用模式匹配,这样做可以简化某些函数。
For example, the ability to define multiple approaches to the same functions and employ pattern matching for recursive calls simplifies some functions.
应用推荐