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

I would prefer

X is 5

X is x + 5



How do you feel about ADD 5 TO X GIVING X?

I kid, of course, but "X is x + 5" brings Prolog to mind with all the unification and bidirectionality that implies.


> ADD 5 TO X GIVING X

Grammatically, this would not change X. "...GIVING X" would just return X. Since it's part of the same statement, it seems it should ignore the "ADD 5 TO X" part.

Now, if you'd like to place the result into X, I suggest "ADD 5 TO X" would suffice as the entire statement.




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

Search: