elvis icon indicating copy to clipboard operation
elvis copied to clipboard

truthy, ternary, elvis and conditional assignment and conditional access operators for nim

Results 5 elvis issues
Sort by recently updated
recently updated
newest added

I've been working with a C library, and the try/catch mechanism doesn't work well for digging into structs. For example, I call function that returns a `ptr`. ```nim let draw:...

Just replaced `int` by `SomeInteger` and `float` by `SomeFloat` and added some tests.

This change makes the elvis operator better at handling complex expressions. It also removes the incorrect `try except` usage that caught defects, as they just hide bugs if you use...

Not quite sure what is going on, but I do have a minimal reproducible example: ```nim import elvis var a: seq[int] = @[] echo ?(a[0]) type Story* = object var...

With https://github.com/nim-lang/Nim/pull/24821; except: now panics on Defect