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

Only by your definition. Colorless was always about DX, nowhere in the original article did anyone care about implementation. And this stuff does matter. I have created libraries which provides calls in both sync and async contexts to the same function and it works just fine.



Does developer experience not include using function pointers in Zig?


How is calling non-async functions via @asyncCall insufficient?


@asyncCall is exactly the sort of thing the original function colors calls out.


Actually, it's not... since you can use it on async and non async functions alike, which is what GP says. PLs with colored functions can't do the same thing at all, moreover the virality of @asynccall terminates at the point where you use it; if it were colored, the context of @asynccall would have to be async, and its parent and grandparent, etc.


Alright, and why should we care about it?




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: