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

Isn't that just syntactic sugar[1]? I cannot see any kind of metaprogramming going on here - unless you can define attr_accessor and similar parts yourself.

[1] http://en.wikipedia.org/wiki/Syntactic_sugar



Isn't that just syntactic sugar[1]?

Actually, it's runtime-during-parsing magic, IIRC.


You can.




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

Search: