this post was submitted on 06 Dec 2023
21 points (100.0% liked)
Asklemmy
49793 readers
669 users here now
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- [email protected]: a community for finding communities
~Icon~ ~by~ ~@Double_[email protected]~
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I like the inline if/else notation
(condition) ? (action if condition applies) : (else condition)
Not sure if that's the kind of thing you're looking for
Ya, its not out of place here or anything.
That too and also initially I was thinkngmore referring to using symbols in place of words like
But I'm just as open to those too ๐ค
Edit: I love ternary expression, such an elegant shorthand
Ahhh gotcha.
Yeah I'm shit with vocabulary, despite coding for a long time now :'D
It can reaaally clean up the thought process as well as the code