|
You are here |
mislav.net | ||
| | | | |
thomascountz.com
|
|
| | | | | 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... | |
| | | | |
eregon.me
|
|
| | | | | 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. | |
| | | | |
zverok.space
|
|
| | | | | ||
| | | | |
troypatterson.me
|
|
| | | Recently I've been invited to work on a project which involves theming Moodle, developing a self-paced course and delivering some professional development. This is an exciting project. The courses that are being developed are STEM related and very high quality. There are several features that I love about this project. Excellent teachers are writing the [...] | ||