Closed k-okada closed 9 years ago
The snippet seems to only contain PENDING
but not Pending
so I don't understand what you can't distinguish?
Capital letters are used since that maps well to the code style in various languages. A camel case constant could potentially collide with a class name - a lower case constant could collide with namespace, field name, variable, etc.
I will close this ticket due to no response. Please feel free to comment with more information.
Oh, Lisp can not distinguish ':Pending' and ':PENDING'. So I just want to know if using both "Pending" and "PENDING" in constant value in ros message is permitted or not.
[1]> (eq :Pending :PENDING)
T
[2]> (eq :Pending :pending)
T
[3]> (eq :pending :notpending)
NIL
As I wrote above the convention is upper case for constants. A convention is only a recommendation but diverging from it should only be done for very good reason. Why do you want to diverge from that in the first place?
Hi,
I'm not sure if this is right place to ask question. I think it is convention to use CAPITIAL letter for constant name, but does it MUST be a capital letter?
I see following code in roslisp (/share/common-lisp/ros/actionlib_msgs/msg/GoalStatus.lisp) and I'm afraid it can not distinguish "PENDING" and "Pending"
http://wiki.ros.org/msg