Function type naming conventions
Jonathan Finn
jfinn at boxoftricks.org
Mon Jan 7 10:29:48 PST 2013
On 01/03/2013 12:32 AM, Tim Peierls wrote:
> Unvarnished reactions: I still hate "Block" -- doesn't mean anything
> to me
I know the name Block had a lot of discussion before, but I've just realised why it bothers me (and I think this point is a new one). Hope it's not completely set in stone yet...
Block seems to be a category mistake: Function, Predicate etc. refer to concepts in the real world/logic/maths. But to me, 'block' means something like 'some source code between braces', so in my head it refers not to a concept, but to how the concept is implemented - and at the source code level too. LinesOfCode, anyone? 8^)
As for a better name: Action was suggested before and seems good to me. An objection was it clashes with javax.swing.Action, but we already have java.awt.List and the world hasn't come to an end.
Jonathan
Jonathan Finn
More information about the lambda-libs-spec-observers
mailing list