Hacker News new | past | comments | ask | show | jobs | submit login

Has anyone any idea where the `` format strings come from??

As far as I know rust doesn't have them.

And as far as I know if rust gets format strings it most likely get them in form of a `f` prefix (like raw strings have an `r` prefix and binary strings have a `b` prefix).

Is it just a thing to make the code more readable/shorter on the web?




The code shown in the article isn't Rust, but Rune [0], which has similar syntax, but is a dynamic scripting language. It has template literals [1].

[0] https://rune-rs.github.io/

[1] https://rune-rs.github.io/book/template_literals.html


Oh, that makes sense.


If you are talking about "Here is an example of a complete workload that measures performance of selecting rows by random keys", then you are looking at Rune code rather than Rust code.

See https://rune-rs.github.io/book/template_literals.html



HN doesn't use Markdown.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: