sbcgua / ajson

Yet another json parser serializer for ABAP
MIT License
49 stars 15 forks source link

Methods renames #138

Open sbcgua opened 1 year ago

sbcgua commented 1 year ago

Maybe:

mbtools commented 1 year ago

I prefer a "short verb" for method names as long as it's consistently used (i.e. not new for one class and create for another).

I don't mind adjusting existing code. Feel free to drop the old methods in a coming version 😄

sbcgua commented 1 year ago

I added new in #117. So it is there. create_empty will live for some time, we use it in our code base ... and actually in AG probably. By the way zcl_ajson is also create public now. So: zcl_ajson->new( ... ), create object zcl_ajson ... and 7.40 new zcl_ajson( ... ) do the same now (which is good :)

So, yeah, prefer those options and probably it makes sense to adjust AG code too. FYI @larshp

create vs new - yeah ... there are some conflicts, I confess. But new is better. :)