Has anyone used Racket before?

Discussion in 'Computer Programming, Emulation, and Game Modding' started by Yil, Mar 15, 2018.

  1. Yil
    OP

    Yil GBAtemp Addict

    Member
    2,122
    638
    Feb 19, 2014
    Canada
    Came across two years ago.
    A variation of Scheme which use list (by its very nature, very nested, much like most functional language) to accomplish everything and quite hard to understand sometimes. Arrays are non-existent, typical variables(still arguable and mostly required to be carried to the next irritation via a function variable or to a helper function) can only exist in small blocks, though it is great for teaching Mathematical logic. However, Decimals are not binary, all fractions are expressed properly and numerical sizes can go on indefinitely (there is definitely a proper term for 10-based, infinite accuracy numerical expression). It can also be used to define new languages and possibly did a better job than c++ (seriously some people made a c99 interpreter with Racket. I am not aware of a c++ one, but c++ is more complex than c anyway). Contracts, much like python, are only for documentation and you need to debug yourself when you input wrong type of data.
     
    Last edited by Yil, Mar 16, 2018
  2. Yil
    OP

    Yil GBAtemp Addict

    Member
    2,122
    638
    Feb 19, 2014
    Canada
    If you want to use say a nested structure which is very hard to traverse with iteration, Racket is very good due to its recursion. (Which is its way of achieving pretty much all its functions. sadly Racket cannot memorized recursive results that were computed recently, which Java is capable of. But Java spend quite a lot of resource on recursion, while most functional languages are terrible with iteration)
     
    Last edited by Yil, Mar 15, 2018
Loading...