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

While “use” resembles mixins, it is a much restricted version of whatever you can do in Ruby thanks to lexical scope, closed modules (via open classes), and immutability.

In practice “use” is closer to Ruby’s refinements, which is something that never caught in Ruby because they were too restricted.

You are right that you don’t see this in Erlang but you don’t see similar high level frameworks in Erlang either. Many don’t care for them but many also find such tools an essential part of their toolkit.



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

Search: