Skip to content

Should collections be prevented from being used as functions? #443

Open
@helins

Description

@helins

E.g.

({:a :b} :a) ; -> :b

This construct is quite typical in function programming and Clojure does it as well. However, in :callable? function, this can very easily lead to code injection. Something so dangerous should probably not be so easy. It might be wiser to entirely remove this capability.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information or discussion is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions