varlink / python

Python implementation of the Varlink protocol
https://varlink.org/python/
Apache License 2.0
43 stars 8 forks source link

Question about Interface method naming. #11

Open genalt opened 5 years ago

genalt commented 5 years ago

Hello guys,

Why method name should start with an uppercase character? I know this is a feature, but why did you decide to use it?

haraldh commented 5 years ago

It just simplifies the parser a lot.

https://varlink.org/Interface-Definition

haraldh commented 5 years ago

I could have mapped these to lowercase for the python implementation, though.

genalt commented 5 years ago

Hey Harald,

Sorry for a delay. Yes, this mapping would be really useful, at least for Python. Thanks!

4383 commented 5 years ago

Hello,

Just to clarify things I think it's preferable to speak about camel case style instead of uppercase first character here, and so it can be preferable to use camel case term there too for the sake of consistency, please correct me if I'm wrong.

Anyway mapping on a full lowercase will works with uppercase and camel case both styles.