GithubHelp home page GithubHelp logo

darkly's Introduction

๐Ÿฆ๐Ÿฆ๐Ÿฆ๐Ÿฆ๐Ÿฆ๐Ÿฆ๐Ÿฆ๐Ÿฆ๐Ÿฆ๐Ÿฆ

๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€๐Ÿฆ€

darkly's People

Contributors

lu-zero avatar mmun avatar nrc avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

mmun lu-zero

darkly's Issues

statement form/argument form of scanlns

Perhaps with an implicit loop?

scanlns!("{} {}", x: u32, y:String, {
    ...
});

Or perhaps it should still have expression form, but lets you specify types as arguments, e.g., scanlns!("{}, {}", u32, String) which gives Iterator<Item=(u32, String)>

token/quoting macro bug

There is a bug in rustc that I'm currently hitting and which is preventing any progress on the macro front.

Compare to mmun's spec

https://gist.github.com/mmun/bffc62a5eb6ad648b7f7b2825364962c (cc @mmun)

  • - Add scan! for scan-not-a-whole-line case.
  • - Robust parsing: scan! should keep trying to match the input until it finds something that matches or we run out of bytes. This matches cin and scanf semantics.
  • - Expression form of scan!(...) to avoid boilerplatey bindings in some cases, e.g.
// this snippet also uses default format string inference on the next line
for i in 0..scan!("{}") {
  for j in 0..scan!("{}") {
    // ...
  }
}
  • - Let scan!() infer a default format string:
    • let x: i32 = scan!(); // "{}"
    • let x: (i32,) = scan!(); // "{}"
    • let x: (i32, i32) = scan!(); // "{}{}"

lattice specialisation

We need specialisation with the 'lattice rule' to offer a nice inference-based API which can use the same functions for scanning T as Result<T>.

assign into references

e.g., scanln!("{}", *x) would infer the type of x, read that type, then save it into x

Work on stable Rust

We can use the proc macro hack to get around the proc_macro_hygiene feature, and might be able to find ways around other features.

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.