There seems to be some revival of this in the context of type checkers, and Hiroya Fujinami graciously asked for my opinion on the Sorbet Slack. I'll chime into say this: One of the best parts of Ruby is how much freedom it gives you at...jez (Jake Zimmerman)
@tenderlovemaking Question about an extension to the current implementation. We have a fair amount of code that looks like this: ```ruby class HoldsEvenNumbers def initialize(even) @even = even end private_class_me...jez (Jake Zimmerman)
Most of the calls to `FormatError.new` pass `@gem` for the second argument, which has a `path` method. But in one caseāon package.rb:691 in `verify_gz`, the `source` argument is a `String`. So if there's ever a GZip decode error when a...jez (Jake Zimmerman)
mame (Yusuke Endoh) wrote in #note-4: > Feel free to ask me if you have a question. Wow, thanks for putting this together! I did in fact have a question, but I figure we can move the conversation somewhere else to keep this Ruby tick...jez (Jake Zimmerman)
katei (Yuta Saito) wrote: > For example, CRuby already supports WebAssembly target by Emscripten, but Emscripten heavily depends on JavaScript to emulate some missing features in WebAssembly itself. @katei do you have a link showing ...jez (Jake Zimmerman)
This operation is mentioned and bound to `^U` in both `vi_command.rb` and `vi_insert.rb`, but there is no definition of it. Both Vi and Emacs use the same keystroke to do the same behavior, so I've chosen to use `alias_method` to make t...jez (Jake Zimmerman)
A colleague pointed out that `or_else` has the nice property that it could replace the `||=` for default initializing instance variables: ```ruby @foo ||= compute_initial_value_slow_returns_true_or_false(...) # ^ this logic will r...jez (Jake Zimmerman)
jeremyevans0 (Jeremy Evans) wrote in #note-14: > But the fact that there should be a high bar is something I would hope we all understand. I hope that something I wrote didn't make you think I disagree there! I was just genuinely curiou...jez (Jake Zimmerman)
jeremyevans0 (Jeremy Evans) wrote in #note-12: > the benefit of adding it is smaller than the cost of adding another method to Kernel Can you speak more on the const of adding a method to Kernel? While I understand the costs of somethi...jez (Jake Zimmerman)
I really don't want to add new syntax for something that can already be expressed in normal Ruby code. I wanted to bump this suggestion from Ufuk: ufuk (Ufuk Kayserilioglu) wrote in #note-5: > As for the matching `must` method, I thin...jez (Jake Zimmerman)