Click here to Skip to main content
15,909,373 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Nikunj_Bhatt15-May-19 22:48
professionalNikunj_Bhatt15-May-19 22:48 
GeneralRe: Building a new proper left-to-right executing programming language Pin
musefan16-May-19 3:33
musefan16-May-19 3:33 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Nikunj_Bhatt16-May-19 17:02
professionalNikunj_Bhatt16-May-19 17:02 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Eddy Vluggen15-May-19 23:10
professionalEddy Vluggen15-May-19 23:10 
GeneralRe: Building a new proper left-to-right executing programming language Pin
kalberts16-May-19 1:04
kalberts16-May-19 1:04 
GeneralRe: Building a new proper left-to-right executing programming language Pin
musefan16-May-19 3:39
musefan16-May-19 3:39 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Eddy Vluggen16-May-19 5:28
professionalEddy Vluggen16-May-19 5:28 
GeneralRe: Building a new proper left-to-right executing programming language Pin
kalberts15-May-19 23:07
kalberts15-May-19 23:07 
I spent a few years programming in Planc - Programming LAnguage for Norsk data Computers. Fairly Pascal-like (plus a number of system programming features), but assignments were LtR, like: I + J =: K;

(It also had the very useful swap assignment - if you wrote: newI =: I =: oldI; the newI would be assigned to both I and oldI, but if you rather used newI :=: I =: oldI; the assignment to I would carry the old value of I over to following assignment. So A :=: B =: A; is a full swap.)

You could say that APL is strictly RtL: it has no operator priorities; you have to control all out-of-sequential-order calculations with parentheses. There are two ways to conceptualize this: If you like to work bottom-up, collect the small pieces into larger structures, finally being assigned to a variable, then you start at the right end and read to the left. The alternative is to do it top down, reading from left to right. All the special APL characters makes it difficult to give a true example, but to write it in a Pascal-like way:

TotalCost := FixedCost + UnitCost * Amount1 + Amount2;

TotalCost is assigned a new value, that's the top level. The value is a sum of a FixedCost and something else, what ever the details of the "something else" is. If you want those details, you read on to see a UnitCost multiplied by something, presumably a number of units. To see the details of how the number of units are calculated, you read to see that two amounts are added. The more details you want, the further you read.

If you turn it the other way around, in a LtR language

(Amount2 + Amount1) * UnitCost + FixedCost =: TotalCost;

you start with two out-of-context amounts added together, but you really don't know for which purpose. You multiply it by a value, but there is still no indication of why. You add a FixedCost, but only at the very end of the statement do you realize what you are doing all this for!

Top-Down design has been accepted in systems design, and even in code design, since the 1970s, but when we get down to real programming, we still insist on assembling small pieces without knowing the purpose of it. Smile | :)

I liked the Planc LtR style. But I also like the APL top-down-approach when reading it LtR. I agree that the current mainstream languages makes your attention jump back and forth; I would rather have the APL or Planc philosophy.
GeneralRe: Building a new proper left-to-right executing programming language Pin
den2k8815-May-19 23:39
professionalden2k8815-May-19 23:39 
GeneralRe: Building a new proper left-to-right executing programming language Pin
kalberts16-May-19 0:55
kalberts16-May-19 0:55 
GeneralRe: Building a new proper left-to-right executing programming language Pin
harold aptroot15-May-19 23:34
harold aptroot15-May-19 23:34 
GeneralRe: Building a new proper left-to-right executing programming language Pin
dandy7216-May-19 4:18
dandy7216-May-19 4:18 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Nikunj_Bhatt16-May-19 17:39
professionalNikunj_Bhatt16-May-19 17:39 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Mark_Wallace16-May-19 8:44
Mark_Wallace16-May-19 8:44 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Nikunj_Bhatt16-May-19 17:43
professionalNikunj_Bhatt16-May-19 17:43 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Member 916705716-May-19 21:11
Member 916705716-May-19 21:11 
GeneralRe: Building a new proper left-to-right executing programming language Pin
mischasan17-May-19 7:14
mischasan17-May-19 7:14 
PraiseRe: Building a new proper left-to-right executing programming language Pin
Nikunj_Bhatt20-May-19 1:24
professionalNikunj_Bhatt20-May-19 1:24 
GeneralRe: Building a new proper left-to-right executing programming language Pin
englebart17-May-19 8:13
professionalenglebart17-May-19 8:13 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Nikunj_Bhatt20-May-19 0:51
professionalNikunj_Bhatt20-May-19 0:51 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Dan Sutton17-May-19 8:24
Dan Sutton17-May-19 8:24 
GeneralRe: Building a new proper left-to-right executing programming language Pin
BillWoodruff18-May-19 21:21
professionalBillWoodruff18-May-19 21:21 
GeneralRe: Building a new proper left-to-right executing programming language Pin
Greg Lovekamp31-May-19 4:33
professionalGreg Lovekamp31-May-19 4:33 
GeneralThere is no statute of limitation for War Criminals Pin
Bram van Kampen15-May-19 12:54
Bram van Kampen15-May-19 12:54 
GeneralRe: There is no statute of limitation for War Criminals Pin
PIEBALDconsult15-May-19 13:02
mvePIEBALDconsult15-May-19 13:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.