Welcome, Guest. Please login or register.

Author Topic: Amiga Basic  (Read 14624 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Amiga Basic
« on: January 27, 2010, 06:27:56 PM »
@lou_dias

A language is not ugly simply because you don't like the syntax. I can make exactly the same claim that basic is obscenely, putrescently ugly. It's haplessly verbose, wordy and coding in it feels like trying to write English with boxing gloves on. That would be my opinion only, however, not some established argument against it.

There's a damn good reason why so many languages have syntax derived from C. It's well-defined, concise and expressive. It's probably the single most successful programming level language of all time and if you think it's on it's way out any time soon, well, don't hold your breath. C syntax based languages exist that cover every major programming paradigm and plenty of more obscure ones.

Quote
C is a relic created in a time where every byte counted because memory was limited. It needs to die.

Not liking the syntax is your prerogative but this is just untrue.

Your argument that the syntax is a product of memory constraint is incorrect since it is the size of the resulting object code that matters, not the source. Even a machine with a limited amount of memory can compile large source from disk. The data structures that any compiler builds (C, Fortran, BASIC or whatever other language you fancy) during compilation are far more significant than the actual size of the textual source.

Even if you were to make the claim that it was to reduce the size of source that was being edited, if memory constraints were a prime motivator, there'd be no reason for it to allow long function, variable and structure names, the only practical limits for which are set by the linker.

C syntax is compact simply because it doens't need to be any more verbose.

By all means, prefer using a different syntax, but don't embarass yourself by trying to present your personal dislike of the syntax as some sort of established argument against it.
« Last Edit: January 27, 2010, 06:36:54 PM by Karlos »
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Amiga Basic
« Reply #1 on: January 27, 2010, 07:01:02 PM »
Quote from: lou_dias;540312
I was correct about memory constraints as I was referring to the source code files not the executable.  Alot of text editors had contraints back in the day.

They did, but that is not the reason why C is terse. As pointed out, you can have function names, structure names, variable names as long as you like. The C specification only defines the minimum required supported length.

struct MyVeryLongStructureName {

};

is hardly something you'd expect from a language that was designed for "small memory" editors, is it?

Quote
Here's a big obscure problem with C:  if X=1 {

I assume you meant:

if (X=1) {

}

That's completely well defined. Pointless, yes, but well-defined. That will always execute the code in the block, where as this will always skip it:

if (X=0) {

}

There's no ambiguity here, just programmer error. It isn't as if '=' in C _ever_ means "equal to", it _always_ means "assign to lvalue".

Quote
Side-effects are what makes C crap.
You can defend it just like people defended albums over CD's...feel free.

C has undefined bahavior and lacks alot of features.
http://en.wikipedia.org/wiki/C_(programming_language)
C is the original Dodge Viper of programming languages (recall that the original did not even have outer door handles)...

I was talking about the C syntax, since this is what you complained about, now you are complaining about the limitations of the C language implementation in isolation. Make up your mind which it is you have a problem with. Is it C's syntax or is it C as a programming language?

As pointed out, the C syntax covers many, many languages. I challenge you to find any important programming paradigm for which there is no C syntax derived language that incorporates it.
« Last Edit: January 27, 2010, 07:06:20 PM by Karlos »
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Amiga Basic
« Reply #2 on: January 27, 2010, 08:02:54 PM »
Buh... buh... I'm a mod so you have to agree with what I say or I'll ban your ass... :lol:

Just kidding, seriously....
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Amiga Basic
« Reply #3 on: January 27, 2010, 09:27:10 PM »
Quote
::ducks the ban-hammer:: :-p


/me deploys the MIRV Carpet Layer edition of ban hammer....
int p; // A