I'm guessing:
```ruby
name == 'f32' || name == 'f64' is probably simpler and faster than a type check followed by a regex match.
```