Hacker News new | past | comments | ask | show | jobs | submit login

How are command and commandfor similar to comefrom?

They seem similar to goto to me. With goto, the trigger specifies what to do. That's what command and commandfor do.

With comefrom, what to do specifies the trigger. That seems similar to the existing document.addEventListener() in Javascript.




I don't see either. It's not even similar to goto. It's nothing more than method invocation, which is nothing like goto.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: