Julia Programming Language
Shortcut if isnothing(variable = match(...))
New to Julia
fredrikekre
August 6, 2022, 12:56pm
3
I usually use this style:
elseif (m = match(...); m !== nothing) # use m... end
show post in topic
Related topics
Topic
Replies
Views
Activity
How to do one-liners and other short conditionals?
General Usage
10
1346
September 27, 2017
Something(a, b) not shortcutting
Performance
suggestions
4
761
September 6, 2019
Use condition result inside conditional
General Usage
8
964
January 6, 2021
Style question: ternary operator or short circuit operator or if-end
General Usage
17
1416
February 6, 2020
Can't pass `nothing` to macro
General Usage
macros
4
836
September 25, 2018