Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Ruby from Other Languages" > "To Ruby From C and C++" #1403

Open
DanRathbun opened this issue May 29, 2016 · 0 comments
Open

"Ruby from Other Languages" > "To Ruby From C and C++" #1403

DanRathbun opened this issue May 29, 2016 · 0 comments

Comments

@DanRathbun
Copy link

DanRathbun commented May 29, 2016

Needs review and updating for new features since 2.0

page path:
"/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp/"

(1) section Similarities with C++
The C++ -> operator is mentioned. The new Ruby use of the -> operator for declaring Proc objects should perhaps be mentioned (in the Differences section, and linked from here.)

(2) section Differences from C++

"There’s only two container types: Array and Hash."

What of Set, Struct, Matrix or Range ?

(3) section Differences from C++

"There’s no type conversions. With Ruby though, you’ll probably find that they aren’t necessary."

Should there be mention of coercion ?

Or the global functions such as Integer(), Float(), etc.

(4) section Differences from C++

"Multithreading is built-in, but as of Ruby 1.8 they are “green threads” (implemented only within the interpreter) as opposed to native threads."

This appears to not have been changed since 1.8. Has this changed with 2.x and later ?


  • All "Ruby from Other Languages" pages should be reviewed for changes since v 1.8.x.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant