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

Hadn't come across it.

An assignment pipe should be a relatively easy sell since it produces more concise code, and lets the developer work left to right, top to bottom (how we all want to work), rather than having to backtrack to place `df <- ` at the start.

I'd try demo it on super common use cases (so the average R user can easily see how coding patterns are improved by it).

Found the Stack Overflow question: https://stackoverflow.com/q/34500567

EDIT: came across a nice explanation of the S4 system [1] under the 'Overview' and 'Slots and accessor functions' sections. Seems it's commonly used in genetics and geospatial work.

[1] https://kasperdanielhansen.github.io/genbioconductor/html/R_...).



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: