RSSAmplifier

Swatinem · May 1, 2022

Self-referential structs and alternatives

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Today I want to talk about the need for better tools to work with self-referential structs, and also (safe) alternatives that alleviate that need for certain use-cases. Lets start by giving a very concrete example of what I want to achieve. I want to get the nth line of a string quickly . The idiomatic way to do it would be string.lines().nth(nth) , and it can hardly get any simpler than that. The…

Read on swatinem.de

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.