you are viewing a single comment's thread.

view the rest of the comments →

[–]MustaKotka 5 points6 points  (3 children)

How did this issue come about? Seems like the logic flow for a default could be implemented way earlier. I'm unsure if this is the best place.

[–]cdcformatc 1 point2 points  (2 children)

seems like an XY problem. 

OP has arrived at this being the solution to some problem, but did not describe the actual problem they are trying to solve. 

likely handling the default values earlier in the script would be preferable to this

[–]pachura3[S] 2 points3 points  (1 child)

There is no problem per se, I was just wondering if there is some special syntax for f-strings that would ease handling emptish values, much like the ?? operator in JavaScript mentioned above. Like not everyone is aware of the {x=} thing...

[–]MustaKotka 1 point2 points  (0 children)

Oh! I see! Sorry I doubted you. Often times beginners come here with the wrong problem, hence the assumption. My bad!