Skip to content

Incorrect docs regarding creating text snippets #15

@spookylukey

Description

@spookylukey

The README claims:

You can use any logic you like for the text snippets: constants, functions...

As far as I can see this is incorrect. The method relies on parsing Elm source code for a fixed set of constructs (concatenation etc.) in order to generate strings. Anything outside that will not work when it comes to the translated versions - doing something as simple as adding brackets to an expression makes it fail - and it's pretty unclear to me how it could ever be made to work with arbitrary functions.

Maybe this should be:

You can use Elm syntax for the text snippets (with a fixed set of constructs including concatenation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions