{"action":"opened","issue":{"url":"https://api.github.com/repos/redox-os/ion/issues/118","repository_url":"https://api.github.com/repos/redox-os/ion","labels_url":"https://api.github.com/repos/redox-os/ion/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/redox-os/ion/issues/118/comments","events_url":"https://api.github.com/repos/redox-os/ion/issues/118/events","html_url":"https://github.com/redox-os/ion/issues/118","id":138783196,"number":118,"title":"Variable expansion syntax proposition","user":{"login":"nounoursheureux","id":6280095,"avatar_url":"https://avatars.githubusercontent.com/u/6280095?v=3","gravatar_id":"","url":"https://api.github.com/users/nounoursheureux","html_url":"https://github.com/nounoursheureux","followers_url":"https://api.github.com/users/nounoursheureux/followers","following_url":"https://api.github.com/users/nounoursheureux/following{/other_user}","gists_url":"https://api.github.com/users/nounoursheureux/gists{/gist_id}","starred_url":"https://api.github.com/users/nounoursheureux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nounoursheureux/subscriptions","organizations_url":"https://api.github.com/users/nounoursheureux/orgs","repos_url":"https://api.github.com/users/nounoursheureux/repos","events_url":"https://api.github.com/users/nounoursheureux/events{/privacy}","received_events_url":"https://api.github.com/users/nounoursheureux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-06T11:09:47Z","updated_at":"2016-03-06T11:09:47Z","closed_at":null,"body":"While the current syntax `$var` is great thanks to its simplicity, I think it can be inconvenient. Here is an example in the form of an imaginary PROMPT variable:\r\n```\r\nlet PROMPT = \"$USERNAME@$CWD:$SUFFIX\"\r\n```\r\nThe problem here in my opinion is that is can be unclear when a variable's name ends. In this particular case it is easy because I used special character, but if I wanted to use `a` instead of `@` it wouldn't work. So i suggest that we use the following syntax instead: `${var}` . In my opinion it is as readable as `$var` while avoiding ambiguity. And so our PROMPT variable would be:\r\n```\r\nlet PROMPT = \"${USERNAME}@${CWD}:${SUFFIX}\"\r\n```\r\nWhat do you think ?"}}