You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow user-defined extension method like templates so can saying things like x is positive where x is a BigDecimal and have it convert into code such x.signum() > 0
Essentially, create an additional method "isPositve" which inlines the logic. This way, can use existing speech to code functionality. For example x is empty will invoke x.isEmpty() for String and Collection since there's a method named isEmpty. Whereas, if x is a StringBuilder, there is no isEmpty method. However, an extension method could be defined so that the code becomes x.length() == 0
I could define some predefined extension methods and the user can add their own.
The text was updated successfully, but these errors were encountered:
Allow user-defined extension method like templates so can saying things like
x is positive
wherex
is a BigDecimal and have it convert into code suchx.signum() > 0
Essentially, create an additional method "isPositve" which inlines the logic. This way, can use existing speech to code functionality. For example
x is empty
will invokex.isEmpty()
for String and Collection since there's a method named isEmpty. Whereas, ifx
is a StringBuilder, there is no isEmpty method. However, an extension method could be defined so that the code becomesx.length() == 0
I could define some predefined extension methods and the user can add their own.
The text was updated successfully, but these errors were encountered: