Skip to content

What is the purpose of the metadata at the beginning of a script? #4978

Answered by hiiamboris
algorev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. A few examples:

  • http://www.rebol.org/st-topic-details.r?tag=level//beginner you can see how an external library can extract info from standard header fields
  • title and icon are used to change program's info and appearance in Windows Explorer
  • CLI library uses various items, such as title, author, license, rights and version to generate text for --version and --help arguments
  • other reducers when reading the code can reason about what it does, how to use it, who wrote it, who to contact, how to license, etc.
  • needs field will be used by module system once we have it (currently it understands only View & Audio modules)
  • imagination is the only limit :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hiiamboris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants