Liste des Groupes | Revenir à cl c |
On 01.12.2024 12:52, Bart wrote:
In my syntax, you can write keywords in capitals if you want. It's case-insensitive! People using my scripting language liked to capitalise them. But now colour-highlighing is widely used.Yes, but they made writing, reading and maintaining source codeReally? - For me it's exactly the opposite; having the keywords stand
impossible. [...]
out lexically (or graphically) is what adds to legibility!
(I admit that hitting the Shift or the Caps-Lock key may be consideredThere's a lot of Shift and Caps-Lock with writing C or C-style syntax.
cumbersome by [some/most] people. - I "pay the price" for legibility.)
I had to look back to see what examples I'd posted. It seems you're refering to my backtick examples.[ snip examples of "Bart's language" ](It makes no sense to compare Algol 68 with "your language"
that with me. - I understood that you find it a good idea to implementYou keep saying that. It's a real language and has been tried and tested over decades. Maybe it would be better if I'd just made up hypothetical features and posted about ideas?
an own [irrelevant] language
(You may be aI use a syntax that alleviates me from that!
candidate for using an IDE that alleviates you from such mundane
tasks.)
With your argumentation I'm curious what you think about havingThat's just more fun and games. I don't get the rules there either. Sometimes "};" is needed; sometimes it's not needed but is harmless; sometimes it can cause an error.
to add a semicolon in "C" if you replace a {...} block.
Or, in the first place, what you think about semicolons in "C"sThat's something else that Algol68 fixed, and which other languages have copied (Lua for one).
'if-else' construct (with parenthesis-blocks or single statements).
And what's actually the "statement" in 'if(b)s;' and 'else s;'
and what you think about 'if(b){}else{}' being a statement (or
not, since it's lacking a semicolon).
(This is obviously an issue you have; not the language. You shouldThe last bit of Algol68 I wrote, approaximately half my time was dealing with ";" errors or "SKIP", or forgetting to use upper case for keywords. Fact.
have better written "Usually I'm not aware of this ...". And that's
of course a fair point [for you].)
Lots of languages have also done away with semicolons, or arranged things so that they rarely need to be written.Allow semicolons to be a /terminator/, and all that goes away. It's a noHistory and also facts of contemporary languages disagree with you.
brainer.
(Re: "no brainer": You need a brain to understand or know that, of
course. - So my suggestion to you is obvious; inform yourself.)
For example I find it a "colossal time-waster" to write an ownNot at the time I started doing that. Certainly not in a form that was available to me.
language given the many different existing ones
- some even availableI put a lot of weight on syntax; obviously you don't.
in source code to continue working on an existing code base. Colossal
is here a really perfect chosen adjective. - Your scale seems to have
got impaired; you spot marginal time "wastes" and miss the real ones,
qualitatively and quantitatively.)
I'm sure it has. My point about A68G is that it is interpreter, a fairly slow one. So how fast would A68 code run under an interpreter running under A68G?It's quite unsuited to systems programming, and not just because of itsI've heard and read, as I said, a differing thing about that.
execution speed. However, I'd quite like to see A68G implemented in A68G!
Specifically I recall to have read about that special topic you
mention of writing an Algol 68 compiler in Algol 68; it has been
done.
(Your personal preferences and enthusiasm should not get in the wayReally? I've written countless compilers and interpreters. Mainly I devised systems programming languages. You think I don't know my field?
of either checking the facts or formulate your opinions/thoughts as
what they are, here basically wrong assumptions based on ignorance.)
It makes me smile if you speak about "looking great when typeset",Yeah. The first time I saw C code was in K&R1, in a book I bought in 1982 (for £12; a lot of money). It looked dreadful. The typeface used made it look anaemic. That really put me off, more than the practical problems.
given that the languages we use nowadays, specifically (e.g.) "C",
C++, don't even look good "when typeset".
And the problems you/weI admire languages that adapt and evolve. Fortran for example. C adapted poorly and slowly. Algol68 apparently hasn't evolved at all. I guess it couldn't do without changing it's RR, a big undertaking.
buy with that are directly observable in the languages. Rather we
seem to have accepted all their deficiencies and just work through
(or around) them. Most do that with not complaints. What I find
astonishing is that you - here known to complain about a lot of "C"
details - are now praising things (and at the same time despise
sensible concepts in an exceptionally well designed language as
Algol 68).
Les messages affichés proviennent d'usenet.