Is basic a single line single instruction code language?

Just starting out? Need help? Post your questions and find answers here.
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Post by Little John »

eesau wrote:Maybe he meant something like:

Code: Select all

x, y, z = 1.0
Yes, maybe.

That would be a big advantage, in case it would be possible to write also on the right side more than one value (like e.g. Lua allows to do):

Code: Select all

x, y, z = 1, 2, 3
x, y, z = <procedure call that returns 3 values>
x, y = a, b
x, y = y, x    ; cool form of a SWAP statement, no? :o)
Regards, Little John
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

IMHO such a notation would decrease readability... -100 :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply