Clojure

add fnil for wrapping functions to handle nil

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.2
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

As per discussion
http://groups.google.com/group/clojure/browse_thread/thread/99cc4a6bfe665a6e
fnil provides a convenient way to supply a default value to be used instead of nil for functions that expect values

Activity

Hide
Assembla Importer added a comment -

timothypratley said: [file:bxdOVqdvur34_1eJe5aVNr]: adding fnil

Show
Assembla Importer added a comment - timothypratley said: [file:bxdOVqdvur34_1eJe5aVNr]: adding fnil
Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - stu said: [file:c4H_wYCber37b6eJe5cbLr]
Hide
Assembla Importer added a comment -

stu said: New patch refreshes original patch, adds more tests and some trivial unrelated cleanup.

Show
Assembla Importer added a comment - stu said: New patch refreshes original patch, adds more tests and some trivial unrelated cleanup.
Hide
Assembla Importer added a comment -

richhickey said: what's the definterface stuff in this patch?

Show
Assembla Importer added a comment - richhickey said: what's the definterface stuff in this patch?
Hide
Assembla Importer added a comment -

stu said: That's the "trival unrelated cleanup" part. On April 23, some dummy (me) accidentally committed a .rej file, which is a working file used by git when resolving conflicts. This commit kills it.

Show
Assembla Importer added a comment - stu said: That's the "trival unrelated cleanup" part. On April 23, some dummy (me) accidentally committed a .rej file, which is a working file used by git when resolving conflicts. This commit kills it.
Hide
Assembla Importer added a comment -

stu said: (In [[r:725547f4587f75c063c51659e582cfdbcc140f80]]) tidy up and test #257, remove spurious .rej file

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>

Branch: master

Show
Assembla Importer added a comment - stu said: (In [[r:725547f4587f75c063c51659e582cfdbcc140f80]]) tidy up and test #257, remove spurious .rej file Signed-off-by: Stuart Halloway <stu@thinkrelevance.com> Branch: master
Hide
Assembla Importer added a comment -

stu said: Updating tickets (#256, #257, #367, #358)

Show
Assembla Importer added a comment - stu said: Updating tickets (#256, #257, #367, #358)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: