Could you please tell me what is the correct and idiomatic phrase to say:

Set a/the variable to 10

Set a/the variable with 10

I suppose that the second phrase is incorrect.

This is for writing programming technical documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.