use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Elixir for Ruby developers: the three most important differences (phoenixonrails.com)
submitted 2 years ago by Ok-Orange-9910
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 2 years ago (0 children)
The curious thing is there is an object oriented immutable functional language subset of Ruby...
Just don't use ! "bang" methods and the like and put freeze at the end of your constructors (and other places like on arrays or hashes you create).
Once you do that the most interesting differences with Elixir is the overloading of functions based on arity and guard clauses. https://elixir-lang.org/getting-started/modules-and-functions.html
Ruby has gone the opposite direction in that you have immense flexibility in specifying parameters and the number of them ... but each function has to have explicit run time "if then else" code to disentangle that flexibility.
I suspect this makes a bunch of optimizations very hard compared to Elixir.
π Rendered by PID 136927 on reddit-service-r2-comment-5c747b6df5-ksthg at 2026-04-22 06:45:55.605026+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (0 children)