Coder Social home page Coder Social logo

lender's Introduction

Hi there ๐Ÿ‘‹ Total time coded since May 18 2022

LinkedIn ProtonMail Twitch

  • ๐Ÿ”ญ Iโ€™m currently working on a B.S. in Computer Science ๐Ÿ™‚.
  • ๐ŸŒฑ Iโ€™m currently learning cybersecurity & mobile development.
  • ๐Ÿ‘ฏ Iโ€™m always looking to collaborate.
  • ๐Ÿ’ฌ Ask me anything.
  • โšก Fun fact: I am a tubist ๐Ÿ˜Ž

๐Ÿˆท๏ธ Languages

MIPS32 ARM x86 C C++ Zig Rust Haskell Go Java Scala

Kotlin Swift Lua R Python JavaScript TypeScript C#

HTML5 CSS3 OpenGL Bash SHell LaTex

๐Ÿ  Operating Systems

Windows WSL iOS

Metrics header
Metrics languages

lender's People

Contributors

aliemjay avatar vigna avatar wanderlanz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

lender's Issues

`last` is technically unsound?

last takes a self argument, but returns a lend from self... after dropping self... so a dangling pointer is possible... and somehow still passes MIRI tests? I can't tell if MIRI test is simply failing to catch this or I'm being dumb?

The fix is easy, use &mut self instead of self:

fn last(&mut self) -> ...

I am just opening this issue to make sure I'm not just being delusional at 2:30AM ...

I started working on a lending iterator crate, should I yank it and help you here instead?

Hi,

about 7 months ago I started working on https://github.com/Crazytieguy/gat-lending-iterator, before this crate existed on crates.io. I just now got around to publishing it, but then I noticed that this crate exists and is much more complete and has almost exactly the same design choices. The only major difference I'm noticing is the design around turning a lending iterator into an iterator, see https://github.com/Crazytieguy/gat-lending-iterator/blob/master/src/adapters/map.rs

If you think you'll be maintaining this one or are open to help I'll gladly yank mine ๐Ÿ˜„

Suggestion: highlight in the docs limitation of type inference when using IntoLender

We were writing a crate doing exactly what Lender does (https://crates.io/crates/hrtb-lending-iterator) because we didn't know about it. We're now using your crate instead. ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

One thing that might be confusing for the user is that when using IntoLender type inference doesn't work as expected and might give rise to weird errors. There's an example in the "Type-inference problem" section of the README of our crate. I couldn't find any warning about this problem in your docs, so you might want to add something about this.

Thank you for a great crate!

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.