Alexander Stathis

Results 20 comments of Alexander Stathis

We use inline class definitions (without prior module definitions) in our projects as well. Having this feature would be incredibly useful.

Upgrading to docker desktop version 4.24.2 (124339) has resolved the issue for a colleague of mine.

This is still occurring. Prism is resolving to 0.29, but ruby-lsp resolves to v11.2 because v16.6 requires prism

> Looking at this further I think it can return `nil` or column type. It's a little worse right? ``` my_model.my_association.sum(some_init_arg) do |my_association_obj| # ... do nontrivial transformation of my_association_obj...

Nice, thanks @jeffcarbs . Interesting to see it assume a numeric, I assume that's because by default it uses `0` to seed the sum and likely has some sort of...

I was able to get this to work with some nasty monkey patching in my local environment. I modified [here](https://github.com/Shopify/tapioca/blob/main/lib/tapioca/dsl/compilers/active_record_relations.rb#L790) to be: ``` sigs = [ common_relation_methods_module.create_sig( parameters: [create_opt_param('initial_value_or_column', type:...

https://github.com/Shopify/tapioca/pull/1830

This is a really good idea and would be a huge improvement to Tapioca. How would you implement `save`? This method returns a boolean but would need to narrow the...

@iMacTia > I'm not sure I understand the need for narrowing the type. You don't need to pass a record as a parameter, so the signature would simply be sig...

> Anyway, I completely understand the "the type system shouldn't lie" position I think tapioca as a community has already taken the position that accuracy is more important than ergonomics,...