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
Support a syntax like @parameter(condition) to apply the @parameter only if condition (which is known at compile-time) is true.
This is really syntactic sugar, so it's not a priority, but since I think it should be very easy to implement (it's basically a macro), it would reduce code duplication and make things clearer with all the associated benefits.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Support a syntax like
@parameter(condition)
to apply the@parameter
only ifcondition
(which is known at compile-time) is true.This is really syntactic sugar, so it's not a priority, but since I think it should be very easy to implement (it's basically a macro), it would reduce code duplication and make things clearer with all the associated benefits.
Practical example of unrolling a loop:
At the moment it only makes sense for loop unrolling I think, but maybe in the future there can be other situations in which can come in handy.
Beta Was this translation helpful? Give feedback.
All reactions