Allow Abbreviated Target Names #761
Soroosh129
started this conversation in
Ideas
Replies: 1 comment
-
I am a bit afraid about ambiguity here. What if we have to targets with common abbreviations that are the same? Since this affects only a single line per file, I think it is not too bad to force the verbose name. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some languages such as Python and TypeScript have commonly-used abbreviations such as
Py
andTS
, which are a lot less verbose than the full names. We should perhaps allow for target declarations to use these abbreviations (e.g.target Py
).One approach would be to allow all targets to have abbreviations, or have target-specific abbreviations when appropriate. For the former, we can allow the languages' file extension to be used as the target declaration (e.g.,
rs
for Rust), as well as the full name. I personally prefer the latter approach (i.e., only allowPy
andTS
for now).There is also the issue of case sensitivity. Should both
target Py
andtarget py
be supported? I think the target names should all be case-sensitive (I went back and forth on this a bit) since a target declaration such astarget c
seems to be incorrect.For now, I propose the following as the list of recognized target lists:
Beta Was this translation helpful? Give feedback.
All reactions