logoalt Hacker News

kibwentoday at 12:05 AM1 replyview on HN

If you already have the ability to express the grammar productions in Rust that allow for optionally-specified types (e.g. variable declaration), then you have the ability to express lifetimes and the turbofish (which is just a curious way to call a generic function with a specific type parameter). The only weird thing would be that Lisp uses the apostrophe character for something very different than Rust, but you could just pick any other way to denote lifetimes.


Replies

vermilinguatoday at 12:12 AM

Could!

> Everything Rust has … expressed as s-expressions. No semantic gap.