by robin_reala · 7y ago · 0 comments
fish now supports && (like and), || (like or), and ! (like not), for better migration from POSIX-compliant shells
Perhaps the language creators have plans for future syntax that would not allow what you want. Even if for now the language evidently knows what you mean from the error message.
In this specific case, the developers of fish apparently decided && was good to add.
bar = 1 + 1
I do believe Python made the right call, actually: print needed to be unified with functions, and dropping the requirement for parenthesis for function calls would have introduced so much incompatibility as to make the Python 2 -> 3 transition far more difficult.But ignoring the legacy issue, there is a better way to do function calls, and it is ruby.
I take it fish didn't / doesn't support either?
You were still running the old version, and `echo $version` would have told you.
But maybe now it’s getting closer to production readiness.
But calling it "getting closer to production readiness" feels a tad insulting.
It's probably just a bit of snark, so it's not worth getting up in arms about, but it's not really friendly phrasing.
The syntax is different, the semantics are the same.