Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hey dude, language author here - yeah, a (lambda) will become a Python lambda if it's a single expression, otherwise it'll turn into an anonymous function (with a name like `_hy_anon_fn_00011`) and replace the lambda with a ref to the function.

Allll taken care of :)



I just want to say how much I enjoy seeing hy popping up now. I have come to really like ClojureScript for my webdev stuff, Scheme from SICP and Python, well, has also been on my toolstack for long

Sometimes Hy seems a little undecided on language issues as simple as (defn vs defun) usage of ! for mutating objects or alphabetic chars, etc. I value freedom of choice, but are there any plans to unify this in the direction of "there is one way to do it"?


Yeah, totally. Not sure where we're going yet, but right now those stupid warts are just harmless tumors. Hopefully we can clean it up soon.

I, of course, prefer (defn) and (first) / (rest), but I know killing (defun) (car) and (cdr) will make a few people go nuts.

We'll have to make it sane before 1.0 :)

Thanks for hacking with Hy :3




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: