Is there a verb for the inverse of greet, or a synonym verb for greet that has an inverse verb? Everything I can think of is a verb phrase, exclamation, or noun. Salute is the closest I could find, but it's applicable to arriving and departing.
For context, I’m writing a hello world example of a class and would like to add a method for the inverse of greet to the class to show classes are collections of attributes and behaviors. As a behavior, the method name should be a verb or start with one.
Answer
The single-word verbal opposite of greet (as in a host welcoming guests) is dismiss:
1 : to permit or cause to leave
// dismiss the visitors
// Class is dismissed.
In your case, the function name could be dismiss()
.
To add to this, Hello, world! would be what was said at greeting, and, for example, Goodbye, world! would be what was said at dismissal.
No comments:
Post a Comment