mbakeranalecta / sam

Semantic Authoring Markdown
Other
79 stars 8 forks source link

Should we rename strings as variables? #170

Closed mbakeranalecta closed 6 years ago

mbakeranalecta commented 6 years ago

Strings come up all over the place in the description of the SAM language. Calling the variables strings adds confusion. True, all variables are strings because this is a markup language and everything is a string. But they are also variables.

Actually, because they can contain annotations, they are not pure strings in the string vs markup sense.

mbakeranalecta commented 6 years ago

Just to capture what this would mean.

mbakeranalecta commented 6 years ago

I think an argument for the change is that the content of a string is actually a flow, not a raw string. So string is a somewhat confusing term. Plus variable may express their use better to the lay audience.

mbakeranalecta commented 6 years ago

Would also avoid possible confusion with the StringSource object in the parser.

mbakeranalecta commented 6 years ago

Implemented in fb3fac73561f535554d9b5b7ce8b4271dd6aed43 Documented in 0b71073284a0e079833263af0c4cadc38595bab7