madiathomas
Joined 13 years ago
Joined 13 years ago
This world needs an alternative to anything built by the USA. That way superpowers will have to go to the negotiation table on an equal footing. We don't want one bully. We need at least 5 bullies.
Solution is to improve teaching of STEM subjects at primary and high school level. The problem will sort itself. Second option is protectionist in nature. Favour US residents ahead of international students, even when international students are way better. Second option will only drop the quality of PhD graduates coming from those colleges.
There is no difference. Ternary operator is a syntactic sugar for if/else.
> Is there even any reason for if/else that doesn't return a value (that may be void/unit/similar)?
Main reason why an if statement returns a value is because it is used to test if condition is true or false. If it returns other values, it was going to make it more complicated. Especially when you have an if statement with multiple conditions that must be ORed or ANDed.
What is awful about the variable syntax? This syntax was copied directly from C language.