Replies: 5 comments 4 replies
-
Interesting suggestion! I'm not entirely sure about this. Another possible way to go about this would be to refer to a "Rust reactor" or a "C reactor" when describing a LF code with the Rust or C target, respectively. If think I like |
Beta Was this translation helpful? Give feedback.
-
Maybe we should come to a final decision on this so we can apply it uniformly. Even outside of human-readable documentation, we are already forced to adopt conventions on how we refer to the different targets.
I like Clément's original suggestion, and I do not think that the problems with it are very serious.
|
Beta Was this translation helpful? Give feedback.
-
I agree. That looks right to me. However, TypeScript files seem to be given a .js extension by the code generator. ??? |
Beta Was this translation helpful? Give feedback.
-
OK, I've changed these in the conditional-targets branch. I think this branch is ready to start developing the docs for real. Basic syntax highlighting is working and so is target language selection. Your selected language is remembered in local storage, so you select it once and all the pages you look at will show you the target language you are interested in. |
Beta Was this translation helpful? Give feedback.
-
Sounds good to me!
Edward
…------------
Edward A Lee
Professor
UC Berkeley
On Mar 13, 2022, at 8:19 PM, Marten Lohstroh ***@***.***> wrote:
More specifically, I'd propose we use lf-<language file extension> i.e.,
lf-c, lf-cpp, lf-py, lf-ts, and lf-rs. That makes it nice and short (and
absent of weird symbols like + that filesystems generally don't like).
—
Reply to this email directly, view it on GitHub
<#576 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACA6ONRGK4GDBFFDVQEYZYTU7243LANCNFSM5FOTAFJA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Sometimes when writing documentation I get tired of writing "the Rust target" or "the X target" and would like to use a sort of shortcut. Usually I write eg "LF-Rust" or "LF-Python". I think it's compact, memorable, and has the added benefit that a target can be understood as a language, and not just a setting of our compiler or something.
I guess though, we can understand "LF-Rust" as either being a dialect of Rust, or a dialect of LF. It should be understood as a dialect of LF, and a framework in Rust though. But we already play with that ambiguity in other places, for instance, runtime crates are named
reactor-rust
orreactor-cpp
, which can be understood as "the reactor flavor of C++", just like "reactive C++" or "objective C" and the like.One weird thing is that LF-C sounds like lfc...
Questions:
Cheers
Beta Was this translation helpful? Give feedback.
All reactions