|
When I was reading the first spec for C# -- circa 1999 -- someone asked me, "isn't that the new Microsoft Java?" I have zero knowledge of Java, but C# is the bee's knees.
|
|
|
|
|
PIEBALDconsult wrote: For the most part, C-like languages don't even require line breaks, which makes code generation much easier.
I believe they do so in an implicit way by imposing lengths on a line. I used the following in google to find some references.
cfront maximum line length
c# maximum line length
I suspect this is essential because the compilers I have seen work on lines and not streams.
I have seen a C++ compiler fail because a method was too long (generated code.)
Java also imposes an explicit byte code limit on a method. Not sure about line limit but there are other limitations in the java classes which likely would limit the (realistic) size of the generated class file so I suspect there is some limit there also.
|
|
|
|
|
Using white space as part of the syntax is a huge potential source of errors, one that should simply not exist.
|
|
|
|
|
Most languages require a single space between types and variable names though.
Captain Pedantic strikes again.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
MarkTJohnson wrote: require a single space
Won't a TAB or other whitespace suffice?
|
|
|
|
|
If you want to completely tick off your coworkers.
String fred
= "The text";
Bah! Too much work to make really ugly code.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
Why is that a question? Shouldn't it be more emphatic, with a exclamation? It is for me!
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
I like the Python's power, libraries.
But yes, I wish to have a setting: Curly Braces= ON
|
|
|
|
|
Marc Clifton wrote: it's an interesting realization (to me at least) that my dislike of a language is often based on my dislike of the previous coder's code.
Admit it Marc, you just don't like anyone's code but your own.
I really, I wouldn't fault you for that. I'm the same way. I'm sure most are.
And yet we can't all be right at the same time. Hmmmm...
|
|
|
|
|
I bet you break your eggs on the big end too.
|
|
|
|
|
I don’t even like my code a few months on!
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
dandy72 wrote: Admit it Marc, you just don't like anyone's code but your own. 99% true!
|
|
|
|
|
Jean-Paul Sartre: “Hell is other peoples code !”
FTFY
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
|
|
|
|
|
Agreed. I've never done a serious project where I reached the end and hated the programming language used.
There have been a few I hated the development environment. IBM's VisualAge for C++ and Qt Creator are two examples that come to mind. VisualAge stored the visuals and source code in a data base that corrupted itself regularly and was unrecoverable. Qt Creator's build system was incompetent (incontinent as well, but I digress).
That said, there are languages or language features I probably wouldn't like:
- Significant white space: Python and older FORTRAN's
- Academic languages that are documented using obscure or in-joke vocabulary: functional programming's "monad", for example
- Languages whose designer hated commonly-used syntax in mainstream languages and decided they were going to fix the problem;
:= for assignment in Pascal and Ada - Syntactic sugar that hides logic: C#, I'm looking at you
Software Zen: delete this;
|
|
|
|
|
Gary R. Wheeler wrote: := for assignment in Pascal and Ada
Contrariwise, that eliminates the issue in C-like languages wherein a developer types a single = when a double = was intended.
In my opinion, an unaccompanied = should be a syntax error.
|
|
|
|
|
Hmm. My point of view is that assignment is a more common operation than comparison for equality, so it should therefore require fewer characters to express.
FWIW, I've always thought that allowing assignment in the 'C' if statement was a serious design flaw in the language.
Software Zen: delete this;
|
|
|
|
|
Gary R. Wheeler wrote: a serious design flaw in the language.
Nah, nah, it's a strength...
How about the comma operator? Ever use it?
|
|
|
|
|
PIEBALDconsult wrote: How about the comma operator? Ever use it? Hmm. While I've obviously used it, I've never found a problem that was best solved with a user-defined comma operator. That strikes me as 'clever', and the poor schmuck who has to maintain my stuff over the coming years (namely me) ing hates that sort of thing.
Software Zen: delete this;
|
|
|
|
|
::= is the only solution
|
|
|
|
|
|
I get the joke but why not ≔
Seriously now, I think it's a shame the only thing that hasn't changed in 40+ years of programming is the keyboard. We are stuck to the same limited set of characters that our ancestors put on a typewriter.
Oops! seems I'm ranting again
Mircea
|
|
|
|
|
I would vote for := , I used Pascal a bit back in the day.
Mircea Neacsu wrote: limited set of characters that our ancestors put on a typewriter
Yet several languages allow Unicode now. Oh, and don't forget C's trigraphs.
|
|
|
|
|
Don't expect the compiler to interpret the Unicode symbols identically with the digraphs and trigraphs, though. Not even the monographs, such as × for multiplication.
I never tested out the limits for legality of unicode characters in e.g. C#. Even 7-bit ISO 646 ("ASCII", for those across the pond) has characters not legal in identifiers. Which characters in the full Unicode set are allowed in identifiers? Checking it out by trial and error takes more time than I am willing to spend!
|
|
|
|
|
Btw. I don't get it....
But "::=" means at least in EBNF something like 'definition'
|
|
|
|
|
Quote: Btw. I don't get it....
Piebald, jokingly, came up with the idea of ∴ (the math sign for "therefore" used in logical proofs) instead of the assignment operator. I proposed (half jokingly) to use ≔ (U+2254), the colon equal sign used by Algol, Pascal and a few other languages.
Mircea
|
|
|
|