weld-project / weld

High-performance runtime for data analytics applications
https://www.weld.rs
BSD 3-Clause "New" or "Revised" License
2.99k stars 259 forks source link

Add assertion operator #432

Closed sppalkia closed 5 years ago

sppalkia commented 5 years ago

Adds an assert operator. The assert expression evaluates to true if the assertion condition is true, and terminates the program with an AssertionError otherwise.

Example Usage:

|v: i32| assert(v == 0)
pratiksha commented 5 years ago

Looks great!

sppalkia commented 5 years ago

Thanks for looking at it!