chintanshah
02/01/2018, 7:06 PMcarList: List<Car>
, with java, it used to be trivialyole
02/02/2018, 12:54 PMchristophsturm
02/02/2018, 1:24 PMblah: List<Int>
it suggests list
as name, but ints
would also be great and intList
tooShawn
02/07/2018, 5:30 PMShawn
02/07/2018, 5:31 PMfun foo(car
idea does suggest that the type of that param should be Car
Shawn
02/07/2018, 5:32 PMcarL
, then carList: List<E>
is suggested. from the user’s POV, marrying the two together to suggest List<Car>
doesn’t appear too far apartShawn
02/07/2018, 5:33 PMyole
02/07/2018, 8:54 PMcarList
will be suggested if you already have a carList
property, variable or parameter somewhere; the fact that it's suggested as List<E>
looks like a bug to me. what we don't and won't do is suggest all possible suffixes (List
, Map
, Set
, Producer
, Consumer
, you get the idea) after you've entered the name of a variable which matches a class name