General

Profile

austin (Austin Ziegler)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

08/31/2025

12:00 AM Ruby Feature #21556: Add true? and false? methods to NilClass, TrueClass, FalseClass, and String
Phalado (Raphael Cordeiro) wrote in #note-2:
> nobu (Nobuyoshi Nakada) wrote in #note-1:
> ...
If you're checking a string for the value `"true"`, you're not checking for an exact `true` or `false` value. This is a data conversion appl...
austin (Austin Ziegler)

06/03/2025

02:14 AM Ruby Bug #21392: Data classes do not allow overriding #inspect
nobu (Nobuyoshi Nakada) wrote in #note-5:
> austin (Austin Ziegler) wrote in #note-3:
> ...
In my feature branch where I'm converting to Data classes.
>
> ...
This is the problem, of course, with having maintained something backwa...
austin (Austin Ziegler)

06/02/2025

02:14 AM Ruby Bug #21392: Data classes do not allow overriding #inspect
You are correct (and I should have known better; I have unit tests proving this).
I'm not sure if this is an IRB issue, because IRB's output always outputs `<data …>`.
```
irb(main):002> p Color::CIELAB[1,2,3]
CIELAB [1.0000% 2.0...
austin (Austin Ziegler)

06/01/2025

11:32 PM Ruby Bug #21392 (Closed): Data classes do not allow overriding #inspect
I'm preparing a new version of Color and I have decided to make all of the colour classes Data classes. However, it does not appear that `#inspect` can be overridden:
```ruby
module Color
CIELAB = Data.define(:l, :a, :b) do
...
austin (Austin Ziegler)

04/03/2025

03:11 AM Ruby Feature #14565: Simpler, one-liner, failsafe require in ruby? [Suggested names: require_failsafe, require_safe, require_try, require_add)
jeromedalbert (Jerome Dalbert) wrote in #note-4:
> I like this feature request, a non-failing require would be great for gems that optionally depend on another gem.
> ...
Unfortunately, that `if` will not work, because:
```ruby
p r...
austin (Austin Ziegler)

12/19/2024

04:48 AM Ruby Feature #20205: Enable `frozen_string_literal` by default
byroot (Jean Boussier) wrote in #note-66:
> Note that you don't necessarily need to set `# frozen_string_literal: true` to be compatible.
> ...
It is worth noting that standardrb (the variant of Rubocop that I use) turns off `# frozen_...
austin (Austin Ziegler)

11/29/2024

07:25 PM Ruby Feature #20770: A *new* pipe operator proposal
AlexandreMagro (Alexandre Magro) wrote in #note-52:
> austin (Austin Ziegler) wrote in #note-50:
> ...
Not necessarily. I don't know much about how the parser works to produce the AST, but if it is able to do a *small* bit of backtrack...
austin (Austin Ziegler)
05:27 PM Ruby Feature #20770: A *new* pipe operator proposal
lpogic (Łukasz Pomietło) wrote in #note-49:
> The notation `a |>= b` could be considered syntactic sugar for `a = a |> b`. Please remember that most binary operators in Ruby have similar syntactic sugar (including `||` and `&&`). I do...
austin (Austin Ziegler)

11/16/2024

08:43 PM Ruby Feature #20899: Reconsider adding `Array#find_map`
Dan0042 (Daniel DeLorme) wrote in #note-3:
> Another idea is `filter_map(first: true)`
> ...
Most of the cases where enumerable methods would benefit from a `limit` keyword would probably be better served by the use of `#lazy` enumerab...
austin (Austin Ziegler)

11/12/2024

12:04 AM Ruby Feature #20882: Provide Boolean(...)
Dan0042 (Daniel DeLorme) wrote in #note-8:
> I would agree with any of these combinations, but not all of them at once.
> ...
GitHub Actions takes what I think is the right choice for this:
```typescript
/**
* Gets the input valu...
austin (Austin Ziegler)

Also available in: Atom