{"action":"created","issue":{"url":"https://api.github.com/repos/fsharp/FSharpLangDesign/issues/6","labels_url":"https://api.github.com/repos/fsharp/FSharpLangDesign/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/FSharpLangDesign/issues/6/comments","events_url":"https://api.github.com/repos/fsharp/FSharpLangDesign/issues/6/events","html_url":"https://github.com/fsharp/FSharpLangDesign/issues/6","id":37293389,"number":6,"title":"[Design] String Interpolation","user":{"login":"v2m","id":222667,"avatar_url":"https://avatars.githubusercontent.com/u/222667?v=3","gravatar_id":"","url":"https://api.github.com/users/v2m","html_url":"https://github.com/v2m","followers_url":"https://api.github.com/users/v2m/followers","following_url":"https://api.github.com/users/v2m/following{/other_user}","gists_url":"https://api.github.com/users/v2m/gists{/gist_id}","starred_url":"https://api.github.com/users/v2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v2m/subscriptions","organizations_url":"https://api.github.com/users/v2m/orgs","repos_url":"https://api.github.com/users/v2m/repos","events_url":"https://api.github.com/users/v2m/events{/privacy}","received_events_url":"https://api.github.com/users/v2m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-07-07T17:58:36Z","updated_at":"2016-02-01T17:44:59Z","closed_at":null,"body":"This issue is used to track design discussions of \"String interpolation\" feature\r\n\r\nSee the design document here: https://github.com/fsharp/FSharpLangDesign/blob/master/StringInterpolation.md\r\n"},"comment":{"url":"https://api.github.com/repos/fsharp/FSharpLangDesign/issues/comments/178091311","html_url":"https://github.com/fsharp/FSharpLangDesign/issues/6#issuecomment-178091311","issue_url":"https://api.github.com/repos/fsharp/FSharpLangDesign/issues/6","id":178091311,"user":{"login":"enricosada","id":147243,"avatar_url":"https://avatars.githubusercontent.com/u/147243?v=3","gravatar_id":"","url":"https://api.github.com/users/enricosada","html_url":"https://github.com/enricosada","followers_url":"https://api.github.com/users/enricosada/followers","following_url":"https://api.github.com/users/enricosada/following{/other_user}","gists_url":"https://api.github.com/users/enricosada/gists{/gist_id}","starred_url":"https://api.github.com/users/enricosada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enricosada/subscriptions","organizations_url":"https://api.github.com/users/enricosada/orgs","repos_url":"https://api.github.com/users/enricosada/repos","events_url":"https://api.github.com/users/enricosada/events{/privacy}","received_events_url":"https://api.github.com/users/enricosada/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T17:44:59Z","updated_at":"2016-02-01T17:44:59Z","body":"a question: are we supporting localization correctly?\r\n\r\n[msdn about c# string interpolation](https://msdn.microsoft.com/en-us/library/dn961160.aspx)\r\n\r\nIt's not only about a better string format, need to support i18n too. C# does that with [FormattableString](https://msdn.microsoft.com/en-us/library/system.formattablestring.aspx)\r\n\r\n```\r\nvar product = \"Raspberry Pi\";\r\nvar price = 25.0;\r\nConsole.WriteLine(LocalizationHelper.Format(\r\n    $\"The price of {product} is {price}.\";\r\n));\r\n```\r\n\r\n> However, the string interpolation will be compiled to a FormattableString with “The price of {0} is {1:C}” as the format that will get passed to GetLocalized. In other words, the people doing the localization will still have to localize with numeric indices instead of the more readable named tokens\r\n"}}