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
    Jun 8 '16 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 Jun 8 '16 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. Jun 8 '16 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.
    Jun 8 '16 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. Jun 9 '16 at 9:01
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, privacy policy and cookie policy

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