Serhii Potapov

Results 154 comments of Serhii Potapov

Could you please save the next file: ``` ruby

@iryston , @brunodd Thanks guys. Looks like your Vims were compiled with ruby 1.9, but in your terminal you are using 2.3. I am not 100% sure, but this may...

I've got the same. I use SQLite3, have not tried with PostgreSQL.

@gensmusic Hi! Thanks for raising this. You're not the first one who is raising this issue (another one was https://github.com/greyblake/nutype/issues/43). The primary motivation for having dedicated error types is to...

@DJDuque I am personally not a big fun of having a single error for all cases. The problem with that is that the error is going to have more variants...

@helgoboss Hi, thanks for your report! I think it's partially overlaps with https://github.com/greyblake/nutype/issues/35 The problem with adding new method `.get()` is that it typically returns a reference, not a value...

Hi, thanks for reporting the issue. I think, even if the lower/upper bound is not set explicitly in the validation, in that case `MIN` or `MAX` constant can be used...

Hi, thank you for your appreciation of crate. I want to apologize for the silence, I was on vacation. The idea to use `new` for all was taken from [bounded_inter](https://docs.rs/bounded-integer/latest/bounded_integer/)....

For a reference. Standard library is using `try_new` for fallible constructors: https://doc.rust-lang.org/std/?search=try_new (not stabilized yet). If the change will be made, it should used [diagnostic](https://blog.rust-lang.org/2024/05/02/Rust-1.78.0.html#diagnostic-attributes) to help end users to...

Hi @atezet It's not possible at the moment. But I have this in mind and want to make it possible in the future.