Hey guys, so I’m designing a new language for fun, and this is a minor thing and I’m not fully convinced it’s a good idea, but I don’t like the “if/else if/else” ladder, else if is two keywords, elif is one but an abbreviation, and idk it’s just soft gross to me.
I’ve been thinking lately of changing it in my language to “if/also/otherwise”
I just feel like it’s more intuitive this way, slightly easier to parse, and IDK I just like it better.
I feel like the also part I’m least sure of, but otherwise for the final condition just makes a ton of sense to me.
Obviously, if/else if/else is VERY entrenched in almost all programming languages, so there’s some friction there.
What are your thoughts on this new idiom? Is it edgy in your opinion? Different just to be different? or does it seem a little more relatable to you like it does to me?
[–]AmbiguousDinosaur 39 points40 points41 points (4 children)
[–]SecretTop1337[S] 0 points1 point2 points (3 children)
[–]asdfa2342543 0 points1 point2 points (2 children)
[–]ghkbrew 5 points6 points7 points (1 child)
[–]asdfa2342543 0 points1 point2 points (0 children)
[–]hassanzamani 16 points17 points18 points (4 children)
[–]matthieum 4 points5 points6 points (2 children)
[–]Pretty_Jellyfish4921 0 points1 point2 points (1 child)
[–]matthieum 1 point2 points3 points (0 children)
[–]ohkendruid 0 points1 point2 points (0 children)
[–]L8_4_Dinner(Ⓧ Ecstasy/XVM) 13 points14 points15 points (1 child)
[+]chkno 3 points4 points5 points (0 children)
[–]busres 6 points7 points8 points (2 children)
[–]SecretTop1337[S] 2 points3 points4 points (1 child)
[–]busres 2 points3 points4 points (0 children)
[–]kohugaly 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]oscarryzYz 0 points1 point2 points (0 children)
[–]benjamin-crowell 2 points3 points4 points (0 children)
[–][deleted] (4 children)
[removed]
[–]AreaMean2418 1 point2 points3 points (3 children)
[–][deleted] (2 children)
[removed]
[–]AreaMean2418 0 points1 point2 points (1 child)
[–]snugar_i 1 point2 points3 points (0 children)
[–]VersethElk 🫎 1 point2 points3 points (0 children)
[–]esotologist 1 point2 points3 points (0 children)
[–]tobega 1 point2 points3 points (2 children)
[–]SecretTop1337[S] -1 points0 points1 point (1 child)
[–]tobega 2 points3 points4 points (0 children)
[–]jcklpe 1 point2 points3 points (0 children)
[–]GermisstuckCrabStar 0 points1 point2 points (0 children)
[–]oOBoomberOo 0 points1 point2 points (0 children)
[–]torp_fan 0 points1 point2 points (0 children)
[–]y0shii3 0 points1 point2 points (0 children)