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

`foo.bar` is always a call in Crystal. If `bar` is just an accessor, then the method will be inlined and there is no extra cost compared to make an explicit field access.


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

Search: