Giter Site home page Giter Site logo

Comments (9)

7sharp9 avatar 7sharp9 commented on June 5, 2024

Namespaces should probably be the responsibility of the plugin, although having the namespace in the msbuild file make sit more complex. Any ideas on reconsolidating this?

from myriad.

7sharp9 avatar 7sharp9 commented on June 5, 2024
<Compile Include="Generated.fs">
    <MyriadFile>Library.fs</MyriadFile>
    <MyriadNameSpace> DataSchema </MyriadNameSpace>
</Compile>

So you are using something like that but there are 3 nuget plugins?

from myriad.

TheAngryByrd avatar TheAngryByrd commented on June 5, 2024

Yeah I have the plugins from https://github.com/MoiraeSoftware/myriad/tree/master/src/Myriad.Plugins and my plugin I'm writing loading.

I'm thinking we can check if parsedInput is empty and not write anything if not.

from myriad.

TheAngryByrd avatar TheAngryByrd commented on June 5, 2024

Oh that won't work nevermind.

from myriad.

TheAngryByrd avatar TheAngryByrd commented on June 5, 2024

Maybe generators should return a Some/None whether they should write out or not?

from myriad.

7sharp9 avatar 7sharp9 commented on June 5, 2024

Im not convinced <MyriadNameSpace> DataSchema </MyriadNameSpace> should exist, but a namespace needs to go somewhere. Also perhaps it should be an attribute of MyriadFile.

Making the plugin return Some/None could be a good move. Maybe prefixing try onto the API.

from myriad.

7sharp9 avatar 7sharp9 commented on June 5, 2024

I think MyriadFile is sufficiently generic that it could be any file, not just and F# one, toml would be a good example.

from myriad.

7sharp9 avatar 7sharp9 commented on June 5, 2024

The ns generated by plugins could be grouped and merged, problem I worry about is ordering though.

from myriad.

7sharp9 avatar 7sharp9 commented on June 5, 2024

p.s. MyriadNameSpace is now obsolete, config based

from myriad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.