{"action":"closed","issue":{"url":"https://api.github.com/repos/cloudRoutine/issueTestRepo/issues/98","repository_url":"https://api.github.com/repos/cloudRoutine/issueTestRepo","labels_url":"https://api.github.com/repos/cloudRoutine/issueTestRepo/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/cloudRoutine/issueTestRepo/issues/98/comments","events_url":"https://api.github.com/repos/cloudRoutine/issueTestRepo/issues/98/events","html_url":"https://github.com/cloudRoutine/issueTestRepo/issues/98","id":182448279,"number":98,"title":"Add feature to allow string literals to be separated into text files","user":{"login":"cloudRoutine","id":680051,"avatar_url":"https://avatars.githubusercontent.com/u/680051?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudRoutine","html_url":"https://github.com/cloudRoutine","followers_url":"https://api.github.com/users/cloudRoutine/followers","following_url":"https://api.github.com/users/cloudRoutine/following{/other_user}","gists_url":"https://api.github.com/users/cloudRoutine/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudRoutine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudRoutine/subscriptions","organizations_url":"https://api.github.com/users/cloudRoutine/orgs","repos_url":"https://api.github.com/users/cloudRoutine/repos","events_url":"https://api.github.com/users/cloudRoutine/events{/privacy}","received_events_url":"https://api.github.com/users/cloudRoutine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cloudRoutine/issueTestRepo/labels/declined","name":"declined","color":"171819"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-12T06:48:51Z","updated_at":"2016-10-12T10:12:34Z","closed_at":"2016-10-12T10:12:34Z","body":"# Idea 13412670: Add feature to allow string literals to be separated into text files #\n\n**Status : declined**  \n**Submitted by Jeffrey Pierson on 4/13/2016 12:00:00 AM**  \n**8 votes**\n\nOften in code there is a block of meta language in a string format. Typical examples could be SQL, XML, JSON, MD, or just plain text. The choices a developer normally has is either to embed the text as a string literal or to spearate into a file. Separating into a file normally has some advantages in that the format gets better editing support (ex. MyQuery.sql has a nice editing experience than an embedded string) and it cleans up the related code. The down side is traditionally that now the file is read in at runtime and the tooling support in the code to go to the text file for a given string definition becomes more of a manual process.\r\nWhat I would like to propose is the idea of a string literal where the value can be specified in a referenced text file.\r\nBefore:\r\n_program.fs_\r\nlet myQuery = \"select a, b, c from mytable\"\r\nAfter:\r\n_program.fs_\r\nlet myQuery = @mytable_query.sql\r\n_mytable_query.sql_\r\nselect a, b, c\r\nfrom mytable\n\n\n\n## Response \n** by fslang-admin on 6/13/2016 12:00:00 AM **\n\nHaving a type provider to read string literals from files is entirely reasonable.\r\nI am marking this as declined for the F# language itself because the functionality can be implemented using F# type providers. My suggestion is to open an issue at https://github.com/fsprojects/FSharp.Management/issues\r\nDon Syme\r\nF# Language Evolution\n[Archived Uservoice Comments](../tree/master/archive/suggestion-13412670-add-feature-to-allow-string-literals-to-be-separa.md#comments)\n"}}
{"actor":{"display_login":"cloudRoutine"}}