Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

8
Make sure your TODOs get done!
Post Flair (click to view more posts with a particular flair)
Post Body

Inspired by a Rust utility I saw posted the other day: https://www.reddit.com/r/rust/comments/13gujgg/todo_by_compiletime_lifetimes_for_comments/

I don't know anything about Rust, but I've recently dived into attributes in .NET and figured I could probably recreate the experience in .NET:

Behold: https://imgur.com/a/SR28yPc

Behind the scenes, the code grabs the method that triggered enforcement (this method can be called anywhere in the code base, does not need to be called by a method decorated with an attribute), looks up the associated assembly, loops over all available methods marked with a specific attribute, then evaluates each attribute and throws an exception if the evaluation fails (a date or version number has elapsed, for example). I know that's not super-performant, but the idea would be enforcement would be a one-time check in the entrypoint to a program.

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
47,811
Link Karma
27,302
Comment Karma
20,167
Profile updated: 3 days ago
Posts updated: 4 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago