Please advise on Ruby vs Python, for someone who likes LISP a lot

后端 未结 12 2077
闹比i
闹比i 2021-02-12 12:03

I am a C++ developer, slowly getting into web development. I like LISP a lot but don\'t like AllegroCL and web-frameworks available for LISP. I am looking for more freedom and a

12条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-12 12:41

    I'd go with Ruby. It's got all kinds of metaprogramming and duck punching hacks that make it really easy to extend. Features like blocks may not seem like much at first, but they make for some really clean syntax if you use them right. Open classes can be debugging hell if you screw them up, but if you're a responsible programmer, you can do things like 2.days.from_now (example from Rails) really easily (Python can do this too, I think, but with a bit more pain)

    PS: Check out "Why Ruby is an acceptable LISP".

提交回复
热议问题