Coder Social home page Coder Social logo

Comments (7)

emilaxelsson avatar emilaxelsson commented on July 23, 2024

Just realized that a much simpler test case would be a Ref (Ref a), which should exhibit the same problem.

from feldspar-language.

emilaxelsson avatar emilaxelsson commented on July 23, 2024

Maybe the second solution is not so bad after all. We already have arrays which are in some sense generalizations of references.

from feldspar-language.

josefs avatar josefs commented on July 23, 2024

For the sake of argument, what would be the difference between the new sub-class and Type? What intuition should I use to know which one of them to use in a particular piece of code?

from feldspar-language.

pjonsson avatar pjonsson commented on July 23, 2024

This is a bug that should be fixed in the code generator somewhere; I assume it relates to Program somehow.

How urgent/important is this for you? I don't think it's a minor local fix.

from feldspar-language.

emilaxelsson avatar emilaxelsson commented on July 23, 2024

For the sake of argument, what would be the difference between the new sub-class and Type? What intuition should I use to know which one of them to use in a particular piece of code?

I'm not sure actually. The simplest thing would be to just exclude Ref from Type. But I don't know if that maybe rules out too much (I don't remeber exactly what Type is used for), so I thought a sub-class might be needed.

But it would of course be nice if this could be fixed in the back end. Arrays of references can be useful.

from feldspar-language.

emilaxelsson avatar emilaxelsson commented on July 23, 2024

How urgent/important is this for you? I don't think it's a minor local fix.

Not urgent at all. I just started to think about this for a different reason.

from feldspar-language.

emilaxelsson avatar emilaxelsson commented on July 23, 2024

I will move this issue to feldspar-compiler.

from feldspar-language.

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.