0

I have a 'statement' and I build a package according to the statement.

Which one is correct (for a function name (programing)) ?

"build package by statement"

"build package from statement"

9
  • 3
    build a package according to the statement
    – Kris
    Commented Jun 8, 2016 at 9:11
  • If you're looking for the name of a function then the requirement is usually that it's terse, and intuitive, rather than grammatically correct. So, you can call your function whatever you want Commented Jun 8, 2016 at 9:33
  • 1
    I suppose what I meant was you are not bound by the rules, conventions and semantics of the english language, which is the focus of this forum. Commented Jun 8, 2016 at 10:46
  • 1
    @MaxWilliams ok, this is correct. But I try to stick to correct grammar as much as possible tho. But you are right that's more a personal thing @Peter Shor good advice. I think it's from what I need to use then
    – Daniel W.
    Commented Jun 8, 2016 at 12:09
  • 1
    @MaxWilliams: I don't agree that word choice and grammar don't apply when naming functions. The name doesn't need to be a complete sentence, but using the wrong word in this instance would be very confusing for other programmers trying to understand OP's code. Commented Jun 9, 2016 at 9:01

1 Answer 1

0

The second name is correct. You are building the package from the information contained in the statement.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.