Fast F#: Intro to .NET Generic Collections

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 4

  • @Michal_Peterka
    @Michal_Peterka Год назад

    About the No Warn when using the Add method many times.
    Woudn't it be better to just wrap the function just to add the ignore all the time and still be getting the warnings?
    Something like
    module HashSet =
    open System.Collections.Generic
    let Add (value: 'T) (hashSet: HashSet

    • @FastFSharp
      @FastFSharp  Год назад

      You could certainly do that if you knew you were going to do that often. There are possible performance implications but we probably don't care at this level of detail.

  • @Unaimend
    @Unaimend Год назад

    Is there some way to get a warning if one accidentally uses mutable features?

    • @FastFSharp
      @FastFSharp  Год назад

      Not really. You just need to know that if you are using the .NET Collections you are dealing with mutation.