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

Substitute works IMO the same way replace does[1].

Substitute poison for healthy food.

Substitute poison with healthy food.

The first means you take away healthy food and give poison. The later means you take away poison and give healthy food.

[1] Except that "replace X for Y" sounds weird, except in the common phrase "replace like for like" (and probably some others!).



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: