DEV Community

Discussion on: My first impressions of Rust

Collapse
 
martinhaeusler profile image
Martin Häusler

Rust has very interesting concepts (e.g. ownership), but coming from Java/Kotlin the syntax makes me want to scratch my eyes out. Rust is the only programming language I've ever seen that manages to have single-quotes (') NOT showing up pair-wise. Why..?

Collapse
 
deepu105 profile image
Deepu K Sasidharan • Edited

Yes, the syntax does seem a bit strange. But I have to admit Rust syntax was much easier for me to stomach than Scala 😜

The single quote has special meaning and its never used for strings, its more of a marker for tagging stuff

Collapse
 
louy2 profile image
Yufan Lou

A preceding apostrophe has been shorthand for QUOTE in Lisp since 1974.