Skip to content

Conversation

Noratrieb
Copy link
Collaborator

this is WIP but its looking interesting already

the idea: we keep the current code snippets, additionally we add expalnations in explanations/unsafe_1.md which also contain the titles, then we assemble all of the explanations and code samples+stderr together to make something great. we match the file name for it.

the current implementation needs to be improved and stuff needs to be ported.

@WaffleLapkin
Copy link
Collaborator

WaffleLapkin commented May 14, 2024

Can we put explanations and code in the same directory?

The current structure is somewhat annoying is that the explanation and code live so far apart.

  • They are lonely
  • It's harder than necessary to write explanations, because switching to code is inconvenient

imo we could have whatever_directory/unsafe_1.rs + whatever_directory/unsafe_1.md (or, even better, dir/unsafe/_1.rs and dir/unsafe/1.md, although I'm not sure how to setup the rust projects to allow unsafe/_1.rs...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants