Re:Loop Exits and Structured Programming: Reopening the Deba...
by GrumpyNl on Wednesday June 14, 2017 @05:35AM
(#14551575)
The basics still stands, doesnt matter how you call it or do it different.
Re:Loop Exits and Structured Programming: Reopening the Deba...
by eru on Wednesday June 14, 2017 @10:52AM
(#14553151)
Sorry, what do you mean?
If I may guess: you want to make gotos central? That only holds for compiling to von-Neumann machines. Some other computational structures might not even have instruction pointers to move around.
Thus you can implement 'if' as a user defined function in eg Haskell.
(But I'd advise against the totally if-less style. Pattern matching is just too convenient. (And ifs are just a special case of pattern matching on booleans.))
Pure lambda calculus doesn't I have ifs. If you want to go truly crazy, check out SKI calculus. It doesn't even have lambda abstraction.