F# type providers, how do they work

后端 未结 3 1814
甜味超标
甜味超标 2020-12-29 03:27

I don\'t quite get type providers after watching Don Symes\'s pdc video http://player.microsoftpdc.com/Session/04092962-4ed1-42c6-be07-203d42115274

Do I understand t

3条回答
  •  醉梦人生
    2020-12-29 03:47

    Type providers use F#'s quotations to act as (effectively) compiler plugins that can generate code based on meta-data at compile time.

    This allows you to (for example) read in some JSON, or a data base schema, or some XSD or whatever and then generate F# classes to model the domain that meta-data represents.

    In terms of creating them, I wrote a few blog posts that might be of interest starting with Type Providers from the Ground Up.

提交回复
热议问题