データを取得する手続きが失敗したときの扱い、fallbackについて。 Gaucheでは、おもに定数を渡す。
yamasushi(2013/05/06 05:53:18 UTC)
; fallback (define-method dict-get/fallback-thunk ((dict <dictionary>) key fallback-thunk) ($ force $ dict-get dict key (delay (fallback-thunk) ) ) )
Post a comment
Post a comment