4 ms·
Real Programmer can write FORTRAN programs in any language. That's why Haskell exists. It's the computer scientists' best attempt so far to create a language i
by WildUtah 10y ago
Real Programmer can write FORTRAN programs in any language.
That's why Haskell exists. It's the computer scientists' best attempt so far to create a language in which it's impossible to write FORTRAN programs.
- semi-extrinsic 10y agoI dunno, combining the do statement, the <- assignment operator that I learned from R, and the forM_ monad, I think I could write some good Fortran. Haskell also appears to have a very interesting form of goto: https://wiki.haskell.org/Compose#Using_Cont https://wiki.haskell.org/Compose#Using_Cont With Haskell's advanced type system, could we recreate implicit int/real typing, and perhaps even EQUIVALENCE?
- marcosdumay 10y agoHat tip for anybody that pushes a MonadGoto into hackage, with the obvious Goto and GotoT implementations :) Bonus points for also implementing the ComeFrom interface from Python's comefrom joke package!
- yellowapple 10y agoThey accomplished that by creating a language in which it's impossible to write programs in general ;)