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
If the string values returned will be singleton values (<: String with Singleton), then it's possible to perform more string operations at compile-time (using singleton-ops), and possibly even enforce naming conventions. E.g.:
def foo(implicit n: sourcecode.Name.Aux[N], check: RequireMsg[Substring[N, 3]=="Fun", "Name must start with Fun"] : Unit = {}
val Fun1 = foo //OK
val fun2 = foo //Error: "Name must start with Fun"
The text was updated successfully, but these errors were encountered:
If the string values returned will be singleton values (
<: String with Singleton
), then it's possible to perform more string operations at compile-time (using singleton-ops), and possibly even enforce naming conventions. E.g.:The text was updated successfully, but these errors were encountered: