Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That is both awesome and slightly scary. This type can literally by MITMd. Maybe we'll see a big push for https-everywhere in F# code?

It is pretty awesome that languages exist that let you do this.



As far as I understand the type providers evaluate the samples at compile time. This means that you have at that point of a time a correct version of the data samples. If at compile time everything is ok there is no security or corruption issue for the runtime.

I also think it won't be a good idea to just pull in arbitrary code (or resources) through http(s) during compilation. I think what you really should do is download the files, review them, add them as resources to your project and use those as input for the type providers.


For sure. It's fun to mess around with type providers over https, but not in production. The whole point is to have a (relatively) stable schema.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: