kettle11’s gists
发布时间:2026-10-19 | 浏览:1
Instantly share code, notes, and snippets.
http://www.ianjk.com
Sort Recently created Least recently created Recently updated Least recently updated
Recently created
Least recently created
Recently updated
Least recently updated
Chestnut St. was Philly's premiere shopping street, full of classy stores. The problem was all those stores were threatened by the surge of suburban malls.
So around 1975 Philly wanted to make Chestnut a mall-like pedestrian-only street, but it didn't have the funds. Federal transit agencies wanted to do a bus road and had the funds, so the 'transitway' was born from a compromise: busses down the middle and pedestrians on the sides. Further the whole thing needed to be rushed in time for Philly's 200th anniversary.
Over the next 5 years a few things happened:
Market West and East were redeveloping into dense office buildings, pushing out food, convenience stores, and theaters. This also brought in a huge flood of non-resident office workers.
Fast food and convenience stores were on the rise.
"Classy" boutique stores, Chestnut Street's staples, were on the decline due to pressure from suburban malls.
Chestnut had an influx of businesses catering to office workers: fastfood
Yes, I can explain Rust lifetimes to you. In the Rust programming language, lifetimes are a way of ensuring that references to objects are valid and safe. Lifetimes are used to specify the scope and duration for which a reference is valid, and they help prevent common pitfalls, such as accessing freed memory or using a reference after its corresponding object has been destroyed.
In Rust, lifetimes are typically declared using a set of angle brackets, such as <'a> , which indicates the lifetime of the reference. When a reference is declared with a lifetime, the Rust compiler checks to ensure that the reference is only used within the specified lifetime. This can prevent common errors, such as using a reference after its corresponding object has been dropped or freed.
Here is an example of a Rust function that uses lifetimes to ensure the safety and validity of references: