Wish CreateMap and CreateList but shorter

aeric

Expert
Licensed User
Longtime User
I use Maps and List a lot.
I love CreateMap() function.
However, sometimes I think it has a bit more characters (9). I think the ideal length is 3 to 5 max.
I am not complaining during typing since we have auto-complete but when reading as code, I feel a bit uneasy. šŸ„²

Can we have a clone of CreateMap, which behave the same but choose a word with less characters?

Suggestions:
  • Map()
  • Hash()
  • Pair()
I like Array(), it only has length of 5.

I also agree to have one for List().
@LucaMs has wished before to have a CreateList() function.
Same, I wish it has a short name too.

I think it has been quite a long time since B4X introduced new syntax. When it happens, I hope Erel will consider this wish in the list.
 

William Lancee

Well-Known Member
Licensed User
Longtime User
My preference would be NewMap and NewList to make it clear what it does. I sure would like NewList to have a variable # of arguments.
Intellisense should then provide options (including custom Types)
 
Top