Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why Use Noun Types?

0
Posted

Why Use Noun Types?

0

Using nountypes can save you writing boilerplate code in your command, AND it helps Ubiquity provide better suggestions to the user, making your command easier to use. • Using a nountype lets the user see suggestions for what input they might want to give as arguments to your command • …and saves the user typing by letting them choose a correct suggestion • Nountypes can pre-parse the input for the arguments of your command, so your preview() and execute() methods get data in exactly the format they need. For instance, if you use noun_type_date, you don’t need to write date-parsing code for your command.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.