Code Monkey home page Code Monkey logo

adamant.language.reference's People

Contributors

walkercoderanger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

adamant.language.reference's Issues

Convert Notes to Issues and Changes

I have a bunch of random notes on my computer. I should go through them and convert them into either changes to the reference or issues to work on.

Issues with `sealed` semantics

Sealed may not make sense because every class defines both an interface and the class itself. It doesn't make sense to say an interface is sealed. Maybe the sealed keyword means that you can't inherit from it but you can implement the interface. There could be a different keyword that blocks implementing the interface when required for security reasons, but that still seems problematical.

Namespaces

Should correspond to the directory structure. Start with root namespace in the project. Files either in the namespace of their directory, or optionally represent the whole namespace?

namespace declared at top of file namespace adamant.compiler.core;

Doc comments are in README.md in namespace directory. If a file represents a namespace then they are doc comments about the namespace declaration of the file.

Document Variable References Better

Can you have a variable of type ref ref T or does that always collapse to ref T? What about ref var ref var T?

It seems like ref ref T should collapse/convert to ref T. But the same logic doesn't seem to hold for ref var ref var T.

var x = 5; // x: int
var y = ref var x; // y: ref var int (note ref x would yield the type ref int)
var z = ref var y; // z: ref var ref var int
var zz = ref var z; // zz: ref var ref var ref var int

If ref ref T converts to ref T then ref ref var T should be ref var T. Maybe you simply aren't allowed to take a reference to a variable of type ref (var) T. However, how would that play with generics where you are unsure if the type is a reference or not?

Types like ref var ref T also need to be considered.

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.