Is it possible to have a comment inside a es6 Template-String?

Option 1: Interpolation We can create interpolation blocks that return an empty string, and embed the comments inside them. const fields = ` id,${ /* post id */” } message,${ /* post status/message */” } created_time, permalink_url, type `; console.log(fields); Option 2: Tagged Templates Using tagged templates we can clear the comments and reconstruct the … Read more

Clojure – difference between ‘ (apostrophe) and ` (backtick)

When you quote a collection with ‘, the symbol-name will be quoted exactly as you enter it. ‘(+ x x) => (+ x x) (map namespace *1) => (nil nil nil) ‘(bingo/+ lara/y user/z) => (bingo/+ lara/y user/z) (map namespace *1) => (“bingo” “lara” “user”) When you quote a collection with the backtick, it tries … Read more

Batch equivalent of Bash backticks

You can get a similar functionality using cmd.exe scripts with the for /f command: for /f “usebackq tokens=*” %%a in (`echo Test`) do my_command %%a Yeah, it’s kinda non-obvious (to say the least), but it’s what’s there. See for /? for the gory details. Sidenote: I thought that to use “echo” inside the backticks in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)