Leonid S. Usov

Results 60 comments of Leonid S. Usov

If that's the case then we'll need to perform one additional operation - convert one of the numbers with `decNumberQuantize` method. It could be that this is the reason this...

I believe the issue is that it parses the unary `-` as a math operation, which collapse the number to a double

@pkoppstein > fixing this issue may change the behavior of `[-1 as $x | 1,$x]` OMG that example 🤦🏻 it took me a few minutes to wrap my head around...

I can kind of relate to the OP problem, as even the manual gives a misleading example: > This is useful for providing defaults: ```.foo // 1``` will evaluate to...

I think that adding `///` will add more confusion to the existing `//`. I'd prefer a `?` based syntax: * `?:`

As @olorin37 mentioned, `?:` has already been used for exactly this purpose in other languages, which IMO is a serious argument for using that syntax. I like `??` though, too.

For the discussed operator, I don't think that emptiness of `lhs` should trigger the `rhs`. Doing so will overload the operator. In my mind, the purpose of this operator is...

You are technically correct. However, this doesn't help in practice, IMO. This thread originally mentioned `//` because it was the closest thing to having a default value for a null,...

I doubt it's a good idea to change the behavior of `--exit-status`. However, I agree that the request makes sense. Maybe a solution could be to add `--exit-status-only` variant which...