Texts that print as #<secret> (e.g. a password or a token) so that a log or a REPL doesn't show them.
The reader can't read #<secret>. So a map with a hidden text that goes to a file as EDN fails to read back instead of coming back without its secret. A debugger or a browser's console still shows the text because it shows the fields of an object.
Texts that print as #<secret> (e.g. a password or a token) so that a log or a REPL doesn't show them. The reader can't read #<secret>. So a map with a hidden text that goes to a file as EDN fails to read back instead of coming back without its secret. A debugger or a browser's console still shows the text because it shows the fields of an object.
(hidden? x)Whether x is a hidden text.
Whether `x` is a hidden text.
(hide s)The text s as a value that the printer doesn't show. A hidden text
stays as it is, and so does nil. Two hidden texts are equal when their
texts are.
The text `s` as a value that the printer doesn't show. A hidden text stays as it is, and so does nil. Two hidden texts are equal when their texts are.
(reveal x)The text that x hides. A value that isn't hidden stays as it is, so
the function takes a plain text too.
The text that `x` hides. A value that isn't hidden stays as it is, so the function takes a plain text too.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |