Explore >> Select a destination


You are here

mislav.net
| | thomascountz.com
21.9 parsecs away

Travel
| | tl;dr Numbered block params (_1, _2, etc.) are reserved and read-only, while it (the new block param in Ruby 3.4) has different mutation rules for compatibility. Using combined assignment operators (e.g. +=, &&=), numbered block params could be overwritten without error due to a discrepancy between parse.y and Prism (Ruby's default parser since 3.3). A patch has been applied to Prism in Ruby 3.4.2 to explicitly check for writes to numbered params via combined assignment operators. The Bug In Ruby, block-local numbered parameters (_1, _2, etc.) provide a concise way to reference block arguments without explicit naming. They have received renewed attention recently with the introduction of the it parameter in Ruby 3.4. Though they serve a similar purpose, numb...
| | citizen428.net
11.3 parsecs away

Travel
| | As promised in my previous post this article will cover some of the more advanced features of Crystal, namely macros, C bindings and concurrency. Macros When coming to Crystal from Ruby, one of the biggest changes is the lack of runtime introspection that enables much of Rubys metaprogramming techniques. However, this can be rectified to a certain degree by using macros, which are methods that receive AST nodes at compile time which they use to write new code.
| | eregon.me
11.7 parsecs away

Travel
| | ruby/spec is a test suite for the behavior of the Ruby programming language. The utility to run the test suite is called MSpec and is very similar to RSpec 2.
| | slushpile.net
72.2 parsecs away

Travel
| Wow. The New York Times reports that science fiction and fantasy author Brandon Sanderson raised $15.4 million in 24 hours on Kickstarter. And the donations kept coming in. Fuck me, I don't e...