Menu

#26 Use heredoc-style variable assignment

None
closed
None
2023-09-04
2020-06-17
No

Vim recently introduced heredoc-style "let" variable assignments, with "let myvar =<< EOD ... EOD" constructs.

TOhtml frequently builds long lists of strings for insertion into the document, or for defining subroutines on the fly with minimal runtime logic. These would be more readable using the heredoc-style assignments instead of requiring line continuations, string syntax, etc.

Discussion

  • fritzophrenic

    fritzophrenic - 2023-09-04
    • status: open --> closed
    • Milestone: -->
     

Log in to post a comment.