Nothing says cleanup like nested ternaries. Average Nix code quality.
@delroth Confession. I love this shit. I think it's so much easier to read. Most people don't like this because they aren't used to the pattern.
@cbleslie @delroth I like single ternary ops, but I think this example is pretty bonkers, honestly :(
@srtcd424 @delroth That's okay! If you work on a project with more than one person, you need to make sure everyone can understand it. In this case, I would have left it how it was, because other people.
@cbleslie @delroth I also love nested ternaries like this. 🫣
In javascript I turn everything into a self-executing anonymous function to avoid doing this.
@catsalad @delroth let's start the nested ternary club.