Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
What is the difference between :foo and "foo" ?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="dblack, post: 4498831"] Hi -- s/RUBY/Ruby/ :-) In Ruby, P[olicy]OLS refers to what does or does not surprise Matz. A little surprise is OK. As Yohanes says, it's part of the learning curve -- and Ruby does have a learning curve, even though it's relatively gentle. The language has to be "allowed" to do things in a way that are not identical to what programmers of other languages expect. Otherwise its existence would serve no purpose. Just out of curiosity: can you describe how symbols would work if they weren't surprising? David -- David A. Black [email]dblack@wobblini.net[/email] "Ruby for Rails", from Manning Publications, coming April 2006! [URL]http://www.manning.com/books/black[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
What is the difference between :foo and "foo" ?
Top