PDA

View Full Version : YaBasic dev...



Aurel
19-08-2010, 23:35
Gee oh mine...
Look thread on www.basicprogramming.org called variables...
I can not belive what new author want from this simple but realy nice
basic dialect...such a ignorance from C/C++ programers...
such a lie........ :twisted: ;--) ;--)

John Spikowski
20-08-2010, 07:35
Don't let the direction of some Basic project get you upset. Continue on with your Basic and if you do things right, a user base will unfold. It's the diversity with Basic that has kept the language alive this long. Writing an interpreter is an obtainable goal for most season programmers. Building a compiler is much larger challenge.

It's going to be much harder to market a commercial Basic these days. I'm sure both PB's and ProvideX are struggling to stay relevant.

danbaron
20-08-2010, 07:40
[font=courier new][size=8pt]It seems that he wants to borrow from the big scripting languages, Perl, Python, and Ruby.

He wants to allow arrays to be subscripted by strings, and to implement records as associative arrays.

I think that in his second presentation, what he is doing concerning namespaces, could be considered strange.


a = 1000
value_1 (42)

sub value_1 (a)
print a, main:a // output will be "42 1000"
value_2 ()
return
end sub

sub value_2 ()
a = 512
print a, value_2:a, value_1:a, main:a
// output will be "512 512 42 1000"
return
end sub

[font=courier new][size=8pt]I guess he is implying that value_2() is called after value_1().
And, that "a", in value_1(), is static.

I think in his first presentation, he implies that the following would be permissible (re-binding).


a = 57.235
.
.
.
a = "boat"

[font=courier new][size=8pt]But, in his second presentation, he disallows it.

My impression is that he has been influenced by the big scripting languages, and he wants to mold YaBasic into something similar.

There are benefits to using the big scripting languages. But, I think in order to gain the benefits, you probably need to implement most of their features.
I don't see the value of choosing a few of the features you like, and grafting them on to Basic.

I agree with you, before using a variable in Basic, overall it is better to use either DIM, DEF, or DECLARE.

And, I think the most straightforward way to implement a record in Basic, is by using the "RECORD" (or "STRUCTURE") construct.

My impression is that now that he is going to convert the source code for YaBasic from C to C++, he sees this as his opportunity to change YaBasic into
something which he can view as his own creation. (Similar things happen in workplaces. A new boss comes in, and he changes everything, I think primarily to
eliminate all influence and evidence of the previous boss, and to inflate his ego. Often the changes constitute "negative progress".)

:oops: :x :twisted:
Dan

John Spikowski
20-08-2010, 09:22
It seems that he wants to borrow from the big scripting languages, Perl, Python, and Ruby.

Looks more like they are implementing what has been in ScriptBasic for over 10 years.


He wants to allow arrays to be subscripted by strings, and to implement records as associative arrays.

Comes up short here as well. ScriptBasic allows any type to be assigned to an array element. You can even mix associative and normal arrays together making complex structures easy to deal with.


I think that in his second presentation, what he is doing concerning namespaces, could be considered strange.

ScriptBasic also supports name spaces which are called MODULEs. Just another level of scope for the programmer to structure their code.


I agree with you, before using a variable in Basic, overall it is better to use either DIM, DEF, or DECLARE.

Most scripting languages are typeless as is ScriptBasic. No need to DIM anything including array. If you try to access a variable that hasn't been assigned yet then it returns undef.

zlatkoAB
20-08-2010, 12:20
John we talking here about YaBasic :D
I understand that Script basic some features that are
implemented in SB and is part of SB becose is written on this way.
But with his changes he will change complet concept of language.

Dan i completly agree with you :)