In programming, a docstring is a string literal specified in source code that is used, like a comment, to document a specific segment of code. Unlike conventional source code comments, or even specifically formatted comments like docblocks, docstrings are not stripped from the source tree when it is parsed and are retained throughout the runtime of the program. This allows the programmer to inspect these comments at run time, for instance as an interactive help system, or as metadata. Languages that support docstrings include Python, Lisp, Elixir, Clojure, Gherkin, Julia and Haskell.
Attributes | Values |
---|
rdf:type
| |
rdfs:label
| - Docstring (en)
- Docstring (it)
- ドキュメンテーション文字列 (ja)
|
rdfs:comment
| - In programming, a docstring is a string literal specified in source code that is used, like a comment, to document a specific segment of code. Unlike conventional source code comments, or even specifically formatted comments like docblocks, docstrings are not stripped from the source tree when it is parsed and are retained throughout the runtime of the program. This allows the programmer to inspect these comments at run time, for instance as an interactive help system, or as metadata. Languages that support docstrings include Python, Lisp, Elixir, Clojure, Gherkin, Julia and Haskell. (en)
- Nella programmazione una docstring è un di tipo stringa inserito nel codice sorgente che ha la funzione, analogamente ad un commento, di documentare una porzione di codice. A differenza dei commenti, in testo semplice o con una formattazione particolare come javadoc o doxygen, che vengono ignorati dal parser del compilatore o dell'interprete, le docstring vengono conservate e sono disponibili a runtime, semplificando l'ispezione del codice e fornendo aiuto o metadati durante l'esecuzione. Tra i linguaggi che supportano le docstring vi sono Python, Lisp, Elixir e Clojure. (it)
- ドキュメンテーション文字列あるいはdocstring(英語: documentation string、ドックストリング)はプログラミングにおいてコメントのようにソースコードの特定の部分を文書化するための文字列リテラルのこと。通常のコメントやdocblockのように解析時に構文木から除外されず、プログラムの実行時まで保持されるため対話的なヘルプやメタデータとして利用できる。 歴史的にはEmacsの前身のTECOに初めて実装された。 docstringをサポートするプログラミング言語にはPython、Lisp、Elixir、Clojure、 、Julia and Haskellがある。 (ja)
|
dcterms:subject
| |
Wikipage page ID
| |
Wikipage revision ID
| |
Link from a Wikipage to another Wikipage
| |
Link from a Wikipage to an external page
| |
sameAs
| |
dbp:wikiPageUsesTemplate
| |
has abstract
| - In programming, a docstring is a string literal specified in source code that is used, like a comment, to document a specific segment of code. Unlike conventional source code comments, or even specifically formatted comments like docblocks, docstrings are not stripped from the source tree when it is parsed and are retained throughout the runtime of the program. This allows the programmer to inspect these comments at run time, for instance as an interactive help system, or as metadata. Languages that support docstrings include Python, Lisp, Elixir, Clojure, Gherkin, Julia and Haskell. (en)
- Nella programmazione una docstring è un di tipo stringa inserito nel codice sorgente che ha la funzione, analogamente ad un commento, di documentare una porzione di codice. A differenza dei commenti, in testo semplice o con una formattazione particolare come javadoc o doxygen, che vengono ignorati dal parser del compilatore o dell'interprete, le docstring vengono conservate e sono disponibili a runtime, semplificando l'ispezione del codice e fornendo aiuto o metadati durante l'esecuzione. Tra i linguaggi che supportano le docstring vi sono Python, Lisp, Elixir e Clojure. (it)
- ドキュメンテーション文字列あるいはdocstring(英語: documentation string、ドックストリング)はプログラミングにおいてコメントのようにソースコードの特定の部分を文書化するための文字列リテラルのこと。通常のコメントやdocblockのように解析時に構文木から除外されず、プログラムの実行時まで保持されるため対話的なヘルプやメタデータとして利用できる。 歴史的にはEmacsの前身のTECOに初めて実装された。 docstringをサポートするプログラミング言語にはPython、Lisp、Elixir、Clojure、 、Julia and Haskellがある。 (ja)
|
prov:wasDerivedFrom
| |
page length (characters) of wiki page
| |
foaf:isPrimaryTopicOf
| |
is Link from a Wikipage to another Wikipage
of | |
is Wikipage redirect
of | |
is foaf:primaryTopic
of | |