Resolve Indigo string literals as MText or docs
Clarification and motivation
Indigo code requires the use of constructors to create MText
.
The simplest way to make these is by using the Template-Haskell-powered syntax (e.g. [mt|message here|]
), but this is still not ideal, especially for newcomers.
However, Indigo uses RebindableSyntax
, which allows to use whatever fromString
in scope for string literal.
Given that String
s are never actually used in Indigo code, the fromString
used should create MText
instead.
Update: another string literal use I did not think about was for creation of documentation. A solution to allow both might be similar to the one described in #135 (closed) for numerical values.
Acceptance criteria
String literals in Indigo code are always resolved to MText
or create docs
Edited by Pinto Pasquale