News for hackers. Stuff that matters.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by jononor on Saturday June 08, 2024 @06:17PM (#40620550)
There exists a ternary if statement?

foo = something() if sanity_check else None

Can replace None with foo (or any other expression), if desired.

There are no comments on this comment yet.