Coder Social home page Coder Social logo

Comments (4)

lochana-chathura avatar lochana-chathura commented on August 14, 2024

stream<T1,C1> <: stream<T2,C2> iff T1 <: T2 & C1 <: C2.

Therefore the stream subtypedata can be modeled as [T, C].

from ballerina-lang.

lochana-chathura avatar lochana-chathura commented on August 14, 2024

Having a test failure for type R stream<R?>. (Crashing with a SO as we do not support stream recursions) Currently, this type is allowed in the compiler.

However, type R map<R?>, type R R?[], type R future<R?>, type R typedesc<R?> are not allowed.
type R [R?] is allowed.

from ballerina-lang.

lochana-chathura avatar lochana-chathura commented on August 14, 2024

As per #30101 (comment) stream recursions has to be supported. Support added with 3429d51.

from ballerina-lang.

lochana-chathura avatar lochana-chathura commented on August 14, 2024

Closing with #43000.

from ballerina-lang.

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.