DISQUS

DISQUS Hello! Life is grand is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Literally Ruby

Started by paulmwatson · 10 months ago

I’ve long been a double-quote user and thought it odd that languages supported both that and a single-quote for string literals. Ruby though is a bit clever. A single-quote e.g. ‘literal text’ tells Ruby not to waste time looking inside the string. Double-quotes e ... Continue reading »

2 comments

  • Forgive me if this is obvious, but single-quote 'just-a-string' and double quote "$variable interpolation" behavour has been present Perl for oh... ages, with and without curly braces. If I understand the history of Ruby aright, some Perl functionality made its way into Ruby. Which (as an occasional 'web programmer' dabbling in Ruby) I like.
  • Yup, JavaScript does it too (I think.) Going into the histories of what language pinched what feature from what language is crazy though.

Add New Comment

Returning? Login