things like this are how I know that there are too many people who are absolutely insane and who make mundane decisions.
- to add
+ to subtract
absolute genius. is this what higher education teaches people? I didn't go to college, and maybe that was best. %p locale's equivalent of either AM or PM
%P like %p, but lower caseMost other languages didn't want to handle the syntactic ambiguity of using the period as a decimal point and a statement separator.
For Prolog/Erlang, I think the preceding syntax is disambiguating enough
But if you're producing a list of statements, isn't a statement-list-joining punctuation mark the perfect thing to use?
There's also the difference in different languages between statement separators and statement terminators, but I don't really know enough about it.
It's incredibly simple. Comma means "and", semi-colon ends a clause, full stop closes out the entire thought.
Oh, now this is the last thing, gotta take off the ; or replace a , with a .
At least when I was starting out, I'd have loved a more C-like syntax with {} and consistently semicolons. Of course, Elixir came and just got rid of most punctuation, which I like less.
Anyway, it's consistent and after a couple weeks of messing it up, I can consistently see where the mistake is from the compiler error; after several years, I still sometimes mess it up, but oh well. I can't recall having messed up the punctuation so much that it still compiled but wasn't what I meant, so it's almost always quick to recover.
IE a line to indicate use of this option and a line with a strikethrough to indicate it has been "struck out" as an option.
But using the conventional minus and plus symbols is indeed confusing.
Presumably it was rejected because the whole point of POSIX was to consolidate, regularize, and simplify pre-existing practice. Adding "+" as an additional standard option signifier would take a huge step in the complete opposite direction. The only precedence for "+" would have been the `set` shell builtin, and AFAIU the committee only begrudgingly grandfathered that syntax.
Someone elsethread mentioned the `date` utility, but if you look at the BSD implementation "+" isn't used as an option marker, per se, but rather to disambiguate operand strings. The 2001 standard only defined the following:
date [−u] [+format]
date [−u] mmddhhmm[[cc]yy]
It's splitting hairs, but POSIX was at least able to shoehorn the legacy syntax into a more regularized base interface.