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
type X =object
v: stringprocfff(input: string): X =X(v: input)
procggg(input: string): X =fff(input)
prochhh(input: string): string=ggg(input).v # inefficient copyprochhh2(input: string): string=let v =ggg(input)
v.v
hhh and hhh2 are semantically equivalent and yet in hhh the string is copied - this introduces significant inefficiency for sum type-like constructs.
Description
hhh
andhhh2
are semantically equivalent and yet inhhh
the string is copied - this introduces significant inefficiency for sum type-like constructs.Nim Version
2.0, devel
Current Output
No response
Expected Output
No response
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: