codeshovel icon indicating copy to clipboard operation
codeshovel copied to clipboard

How Should Parameter Meta Change be used?

Open braxtonhall opened this issue 4 years ago • 3 comments

It seems to be used perfectly in Java

In Python it is used for default arguments Perhaps this could be extended to the * and **? However I think these are only ever used on *args and **kwargs so perhaps not?

In TypeScript it isn't used at all, however it could be used for ?, ... and default arguments Similarly in Ruby, it isn't used at all, however it could be used for * and default arguments

braxtonhall avatar Mar 01 '21 21:03 braxtonhall

Java has varargs too: public String format(String... values) {

If ... or ? or * are added or removed from a param, shouldn't that be captured as a Parameter Meta Change, or are you saying that this isn't happening right now @braxtonhall ?

rtholmes avatar Mar 12 '21 15:03 rtholmes

Here's the current status

  • Java
    • [x] Parameter Annotations
    • [ ] ... (this might be done, I'm not sure)
  • Python
    • [x] Default arguments
    • [ ] * and ** (I'm not sure if this is appropriate for Python though)
  • TypeScript
    • [ ] Default arguments
    • [ ] ... and ?
  • Ruby
    • [ ] Default arguments
    • [ ] *

braxtonhall avatar Mar 26 '21 02:03 braxtonhall

I think for Java ... is more likely to be captured my the parameter's type. This actually might be appropriate for all ... * and ?

braxtonhall avatar Mar 26 '21 02:03 braxtonhall