News for hackers. Stuff that matters.
Re:Hy, a Lisp that compiles to Python by bcambel on Monday February 10, 2014 @06:29PM (#7214545)
Great movement from the community to show some love to FP. I really like Clojure, and will give Hy a try as well. FP really forces you to write better code and somehow your thinking starts to change slowly. What I realised is that after I started to write Clojure, I am writing much more functions in Python as well. If you haven't tried yet, give FP some chance.
Re:Hy, a Lisp that compiles to Python by Foxboron on Monday February 10, 2014 @06:32PM (#7214558)
I just want to note that Lisp does not really imply functional programming. Hy is nothing more then Python with Lisp syntax and the awesomesauce that comes from Lisp as macros and reader macros.
Re:Hy, a Lisp that compiles to Python by anaphor on Monday February 10, 2014 @06:31PM (#7214553)
This doesn't make Python any more functional, all it does is change the syntax.
Re:Hy, a Lisp that compiles to Python by bcambel on Monday February 10, 2014 @06:34PM (#7214579)
Python is already functional enough, it's the brain behind the keyboard wasn't that much functional before ( that was me )
Re:Hy, a Lisp that compiles to Python by Tuna-Fish on Tuesday February 11, 2014 @01:51AM (#7216223)
Imho it lacks good types. Python with the clojure collections as default types would be awesome.
Re:Hy, a Lisp that compiles to Python by anaphor on Monday February 10, 2014 @06:39PM (#7214598)
Okay, well at least you can add a proper distinction between variable binding and assignment (let vs. set!) if you have macros, but that doesn't really make it more functional, just better.
Re:Hy, a Lisp that compiles to Python by emidln on Tuesday February 11, 2014 @05:54AM (#7216938)
Well, you could implement proper distinction. let and setv both compile to setattr() in the current scope right now.