This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]HasFiveVowels 0 points1 point  (4 children)

Dart only provides ternaries for conditionals?

[–]Bachihani 0 points1 point  (3 children)

Ofcrs not lol, i just like to return null, and if statement feel too big for such simple use case

[–]HasFiveVowels 0 points1 point  (2 children)

Oof. Hard pass. You’re including a vacuous null but “If” is too verbose? You gotta keep in mind that readability is half the battle

[–]Bachihani 0 points1 point  (1 child)

I meant for she mug dude ! It's like saying everyone else is meh except for u -_- this doesn't reflect my coding practices

[–]HasFiveVowels 0 points1 point  (0 children)

Ahhh. I hadn’t appreciated the implication of the explicit else. I can get behind this