dao icon indicating copy to clipboard operation
dao copied to clipboard

Inconsistency of built-in containers functional interface

Open Night-walker opened this issue 10 years ago • 1 comments

Some code section methods yield item: @T, other -- item: invar<@T> with no clue as to why each variant was chosen. It definitely looks like invar violation when, for instance, list.collect(){} accepting invar list yields non-invar items.

Night-walker avatar Jun 24 '15 07:06 Night-walker

(Also, invar item: @T is preferable to item: invar<@T>)

Night-walker avatar Jun 24 '15 07:06 Night-walker