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
Why Ruby?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Robert Klemme, post: 4658746"] IMHO what 1.9 does better is the awareness of encoding. What it does worse IMHO is that binary is a special encoding of string and not a separate type (Java did it better here). Also, returning a String from String#[] with a single index does not seem the right thing to do. In this case I preferred the 1.8 solution - even better would be the Java solution to have a separate data type for characters. On one hand I can see how this all came about and class String is really versatile. On the other hand, it seems that String is growing overly complex. Maybe Ruby 2.0 should be used to clean this up and really separate handling of binary and character data. My 0.02EUR. Kind regards robert --=20 remember.guy do |as, often| as.you_can - without end [URL]http://blog.rubybestpractices.com/[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Why Ruby?
Top